| 1 | <?php declare(strict_types = 1); |
||
| 10 | trait Constructor |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Set a field value. |
||
| 14 | */ |
||
| 15 | abstract protected function setField(string $field, $value, bool $strict = true); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new JSKOS object with given field values. |
||
| 19 | * |
||
| 20 | * @param Array|Object fields to copy |
||
| 21 | * @param bool strict throw error on unknown fields |
||
| 22 | */ |
||
| 23 | public function __construct($data = null, bool $strict = false) |
||
| 36 | } |
||
| 37 |