X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/c1f01e64c377c59b3825e80661f60d250363250b..8e4e85c8806751174baf531b04ad78c51e3083dc:/Entity/User.php diff --git a/Entity/User.php b/Entity/User.php index 5df315a..8e6a671 100644 --- a/Entity/User.php +++ b/Entity/User.php @@ -1,13 +1,25 @@ - + * + * for the full copyright and license information, please view the license + * file that was distributed with this source code. + */ -// src/Rapsys/UserBundle/Entity/User.php namespace Rapsys\UserBundle\Entity; -use Rapsys\UserBundle\Entity\Group; -use Symfony\Component\Security\Core\User\UserInterface; use Doctrine\Common\Collections\ArrayCollection; +use Symfony\Component\Security\Core\User\UserInterface; + use Rapsys\UserBundle\Entity\Civility; +use Rapsys\UserBundle\Entity\Group; +/** + * User + */ class User implements UserInterface, \Serializable { /** * @var integer @@ -60,12 +72,12 @@ class User implements UserInterface, \Serializable { protected $updated; /** - * @var \Rapsys\UserBundle\Entity\Civility + * @var Civility */ protected $civility; /** - * @var \Doctrine\Common\Collections\ArrayCollection + * @var ArrayCollection */ protected $groups; @@ -306,7 +318,7 @@ class User implements UserInterface, \Serializable { /** * Add group * - * @param \Rapsys\UserBundle\Entity\Group $group + * @param Group $group * * @return User */ @@ -319,7 +331,7 @@ class User implements UserInterface, \Serializable { /** * Remove group * - * @param \Rapsys\UserBundle\Entity\Group $group + * @param Group $group */ public function removeGroup(Group $group) { $this->groups->removeElement($group); @@ -328,7 +340,7 @@ class User implements UserInterface, \Serializable { /** * Get groups * - * @return \Doctrine\Common\Collections\ArrayCollection + * @return ArrayCollection */ public function getGroups(): ArrayCollection { return $this->groups; @@ -428,7 +440,8 @@ class User implements UserInterface, \Serializable { /** * Check if account is activated * - * @xxx was from deprecated AdvancedUserInterface, see if it's used anymore + * It was from deprecated AdvancedUserInterface, see if it's used anymore + * * @see vendor/symfony/security-core/User/AdvancedUserInterface.php */ public function isActivated(): bool { @@ -438,7 +451,8 @@ class User implements UserInterface, \Serializable { /** * Check if account is disabled * - * @xxx was from deprecated AdvancedUserInterface, see if it's used anymore + * It was from deprecated AdvancedUserInterface, see if it's used anymore + * * @see vendor/symfony/security-core/User/AdvancedUserInterface.php */ public function isDisabled(): bool {