/** * Set username * * @param string $username * @return Version */ public function setUsername($username = null) { $this->username = \Contao\Doctrine\ORM\EntityHelper::callSetterCallbacks($this, self::TABLE_NAME, 'username', $username === null ? null : (string) $username); return $this; }
/** * @param string $email * * @return $this */ public function setEmail($email) { $this->email = strtolower($email); $this->email = EntityHelper::callSetterCallbacks($this, static::TABLE_NAME, 'email', $email); return $this; }