| 1 | <?php |
||
| 23 | abstract class AbstractParam implements ParamInterface |
||
| 24 | { |
||
| 25 | /** @var string */ |
||
| 26 | public $name; |
||
| 27 | |||
| 28 | /** @var string */ |
||
| 29 | public $key; |
||
| 30 | |||
| 31 | /** @var mixed */ |
||
| 32 | public $default; |
||
| 33 | |||
| 34 | /** @var string */ |
||
| 35 | public $description; |
||
| 36 | |||
| 37 | /** @var bool */ |
||
| 38 | public $strict = false; |
||
| 39 | |||
| 40 | /** @var bool */ |
||
| 41 | public $nullable = false; |
||
| 42 | |||
| 43 | /** @var array */ |
||
| 44 | public $incompatibles = array(); |
||
| 45 | |||
| 46 | /** {@inheritdoc} */ |
||
| 47 | 27 | public function getName() |
|
| 51 | |||
| 52 | /** {@inheritdoc} */ |
||
| 53 | 30 | public function getDefault() |
|
| 57 | |||
| 58 | /** {@inheritdoc} */ |
||
| 59 | 1 | public function getDescription() |
|
| 63 | |||
| 64 | /** {@inheritdoc} */ |
||
| 65 | 21 | public function getIncompatibilities() |
|
| 69 | |||
| 70 | /** {@inheritdoc} */ |
||
| 71 | 40 | public function getConstraints() |
|
| 80 | |||
| 81 | /** {@inheritdoc} */ |
||
| 82 | 29 | public function isStrict() |
|
| 86 | |||
| 87 | /** |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | 29 | protected function getKey() |
|
| 94 | } |
||
| 95 |