You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 line
502B

  1. <?php
  2. namespace common\logic\User\UserGroup\Service;
  3. use common\logic\AbstractBuilder;
  4. use common\logic\User\UserGroup\Model\UserGroup;
  5. class UserGroupBuilder extends AbstractBuilder
  6. {
  7. public function instanciateUserGroup(): UserGroup
  8. {
  9. $userGroup = new UserGroup();
  10. return $userGroup;
  11. }
  12. public function createUserGroup(): UserGroup
  13. {
  14. $userGroup = $this->instanciateUserGroup();
  15. $this->saveCreate($userGroup);
  16. return $userGroup;
  17. }
  18. }