public function __construct($username = null, $provider = null) { if ($username !== null) { $this->setUsername($username); } if ($provider !== null) { $this->setProvider($provider); } $this->setAdmin(false); $this->setActive(true); $this->setProtected(false); }