| 1 | <?php |
||
| 10 | class Parameter |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $type; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | protected $scalar = false; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string? |
||
| 24 | */ |
||
| 25 | protected $name; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var mixed |
||
| 29 | */ |
||
| 30 | protected $value; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Creates a new Parameter |
||
| 34 | * |
||
| 35 | * @param mixed $value |
||
| 36 | * @param string? $name |
||
|
|
|||
| 37 | */ |
||
| 38 | public function __construct($value, $name = null) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getName() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | public function isScalar() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return mixed |
||
| 69 | */ |
||
| 70 | public function getValue() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | public function getType() |
||
| 82 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.