1 | <?php |
||
31 | class Type extends Common |
||
32 | { |
||
33 | /** |
||
34 | * type |
||
35 | * @var type |
||
36 | */ |
||
37 | private $_sType = ''; |
||
38 | |||
39 | /** |
||
40 | * constructor |
||
41 | * |
||
42 | * @access public |
||
43 | * @param string $sType type |
||
44 | * @return Type |
||
|
|||
45 | */ |
||
46 | public function __construct(string $sType) |
||
50 | |||
51 | /** |
||
52 | * validate the Type |
||
53 | * |
||
54 | * @access public |
||
55 | * @param string $sValue |
||
56 | * @return bool |
||
57 | */ |
||
58 | public function validate(string $sValue = null) : bool |
||
70 | } |
||
71 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.