| Total Complexity | 7 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class ListParameter extends Parameter |
||
| 25 | { |
||
| 26 | |||
| 27 | // |
||
| 28 | // STATIC FUNCTIONS |
||
| 29 | // |
||
| 30 | |||
| 31 | // |
||
| 32 | // PUBLIC FUNCTIONS |
||
| 33 | // |
||
| 34 | |||
| 35 | /** |
||
| 36 | * ReturnsParameter::ARGH_TYPE_LIST |
||
| 37 | * |
||
| 38 | * Identifies this Parameter subtype as a ListParameter by returning constant ARGH_TYPE_LIST |
||
| 39 | * |
||
| 40 | * @since 1.0.0 |
||
| 41 | * |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | public function getParameterType(): int |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Sets the array value of this Parameter. |
||
| 51 | * |
||
| 52 | * Forces all values into an array |
||
| 53 | * |
||
| 54 | * @since 1.0.0 |
||
| 55 | */ |
||
| 56 | public function setValue($value) |
||
| 65 | } |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Adds an element to the value of this Parameter |
||
| 70 | * |
||
| 71 | * Forces all values into an array |
||
| 72 | * |
||
| 73 | * @since 1.0.0 |
||
| 74 | * |
||
| 75 | * @return int |
||
| 76 | */ |
||
| 77 | public function addValue($value) |
||
| 100 |