| 1 | <?php |
||
| 8 | trait ChangeSet |
||
| 9 | { |
||
| 10 | public $change_set = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Set the value of change_set |
||
| 14 | * |
||
| 15 | * @param array $change_set the change set |
||
| 16 | * |
||
| 17 | * @return self |
||
| 18 | */ |
||
| 19 | public function setChangeSet(array $change_set) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Ajoute un champ au change_set de l'entité si elle possède cette propriété |
||
| 37 | * |
||
| 38 | * @param string $field_name le nom du champ |
||
| 39 | * @param array $data les données changées |
||
| 40 | * |
||
| 41 | * @return null |
||
| 42 | */ |
||
| 43 | public function addFieldToChangeSet($field_name, array $data) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the value of change_set |
||
| 50 | * |
||
| 51 | * @return array|null |
||
| 52 | */ |
||
| 53 | public function getChangeSet() |
||
| 57 | } |
||
| 58 |