| 1 | <?php |
||
| 23 | abstract class AbstractParam implements ParamInterface |
||
| 24 | { |
||
| 25 | /** @var string */ |
||
| 26 | public $name; |
||
| 27 | /** @var string */ |
||
| 28 | public $key; |
||
| 29 | /** @var mixed */ |
||
| 30 | public $default; |
||
| 31 | /** @var string */ |
||
| 32 | public $description; |
||
| 33 | /** @var bool */ |
||
| 34 | public $strict = false; |
||
| 35 | /** @var bool */ |
||
| 36 | public $nullable = false; |
||
| 37 | /** @var array */ |
||
| 38 | public $incompatibles = array(); |
||
| 39 | |||
| 40 | /** {@inheritdoc} */ |
||
| 41 | 8 | public function getName() |
|
| 45 | |||
| 46 | /** {@inheritdoc} */ |
||
| 47 | 5 | public function getDefault() |
|
| 51 | |||
| 52 | /** {@inheritdoc} */ |
||
| 53 | 1 | public function getDescription() |
|
| 57 | |||
| 58 | /** {@inheritdoc} */ |
||
| 59 | 5 | public function getIncompatibilities() |
|
| 63 | |||
| 64 | /** {@inheritdoc} */ |
||
| 65 | 14 | public function getConstraints() |
|
| 74 | |||
| 75 | /** {@inheritdoc} */ |
||
| 76 | 1 | public function isStrict() |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | 4 | protected function getKey() |
|
| 88 | } |
||
| 89 |