public function __construct($username, array $roles = array(), $enabled = true, $userNonExpired = true, $credentialsNonExpired = true, $userNonLocked = true) { parent::__construct(); $this->username = $username; $this->setEnable($enabled); }
/** * * @param string $name */ public function __construct($name) { parent::__construct(); $this->name = $name; }