| 1 | <?php |
||
| 16 | class ClassProperty extends ClassMember |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $name; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string[] |
||
| 25 | */ |
||
| 26 | private $types; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * ClassProperty constructor. |
||
| 30 | * |
||
| 31 | * @param string $name |
||
| 32 | * @param string|array $types |
||
| 33 | */ |
||
| 34 | public function __construct(string $name, $types) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getName(): string |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return \string[] |
||
| 56 | */ |
||
| 57 | public function getTypes(): array |
||
| 61 | } |
||
| 62 |