| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,12 +4,12 @@ class Assemble { | |||
| 4 | 4 | } | |
| 5 | 5 | ||
| 6 | 6 | class Car { | |
| 7 | - +__construct() | ||
| 7 | + +__construct(Workshop $workShop1, Workshop $workShop2) | ||
| 8 | 8 | +manufacture() | |
| 9 | 9 | } | |
| 10 | 10 | ||
| 11 | 11 | class Motorcycle { | |
| 12 | - +__construct() | ||
| 12 | + +__construct(Workshop $workShop1, Workshop $workShop2) | ||
| 13 | 13 | +manufacture() | |
| 14 | 14 | } | |
| 15 | 15 | ||
@@ -18,9 +18,9 @@ class Produce { | |||
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | abstract class Vehicle { | |
| 21 | - protected workShop1 | ||
| 22 | - protected workShop2 | ||
| 23 | - +__construct() | ||
| 21 | + #workShop1 | ||
| 22 | + #workShop2 | ||
| 23 | + #__construct() | ||
| 24 | 24 | +manufacture() | |
| 25 | 25 | } | |
| 26 | 26 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,20 +1,20 @@ | |||
| 1 | 1 | @startuml | |
| 2 | 2 | class Form { | |
| 3 | - protected elements | ||
| 4 | - +render($indent = 0) | ||
| 3 | + #elements : array|FormElement[] | ||
| 4 | + +render($indent = 0 : int) | ||
| 5 | 5 | +addElement(FormElement $element) | |
| 6 | 6 | } | |
| 7 | 7 | ||
| 8 | 8 | abstract class FormElement { | |
| 9 | - +render($indent = 0) | ||
| 9 | + +render($indent = 0 : int) | ||
| 10 | 10 | } | |
| 11 | 11 | ||
| 12 | 12 | class InputElement { | |
| 13 | - +render($indent = 0) | ||
| 13 | + +render($indent = 0 : int) | ||
| 14 | 14 | } | |
| 15 | 15 | ||
| 16 | 16 | class TextElement { | |
| 17 | - +render($indent = 0) | ||
| 17 | + +render($indent = 0 : int) | ||
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | FormElement <|.. TextElement | |
| Back | FazBrowse Home | New Git URL |
0 commit comments