| 1 | <?php |
||
| 21 | trait UserGroupEntityTrait |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Returns a new instance of the required entity. |
||
| 25 | * |
||
| 26 | * @param string $entityClassName |
||
| 27 | * @throws RuntimeException |
||
| 28 | * @return UserGroupEntity |
||
| 29 | */ |
||
| 30 | abstract protected function getNewEntityInstance($entityClassName); |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Creates a new Policy Entity instance form the data. |
||
| 34 | * |
||
| 35 | * @param array $data |
||
| 36 | * @return UserGroupEntity |
||
| 37 | */ |
||
| 38 | 2 | protected function createUserGroupEntity(array $data) |
|
| 51 | } |
||
| 52 |