| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait Attributable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param $attribute |
||
| 11 | * @return bool |
||
| 12 | */ |
||
| 13 | public function isRequiredAttribute($attribute) |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param $attribute |
||
| 20 | * @return bool |
||
| 21 | */ |
||
| 22 | public function isOptionalAttribute($attribute) |
||
| 23 | { |
||
| 24 | return in_array($attribute, $this->getOptionalAttributes(), true); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return bool |
||
| 29 | * @throws \Attribute\Exception\MissingRequiredAttributeException |
||
| 30 | */ |
||
| 31 | public function attributeMissing() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |