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.

UserGroupBuilder.php 431B

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