public function setUsername($username) { parent::setUsername($username); $this->setEmail($username . '@lichess.org'); }
public function setEmail($email) { $this->setUsername($email); return parent::setEmail($email); }
public function __construct() { parent::__construct(); $this->created = new \DateTime(); $this->completedProfile = false; }
public function __construct() { parent::__construct(); }
public function __toString() { $this->__load(); return parent::__toString(); }
/** * Document startup */ public function __construct() { parent::__construct(); $this->setCreatedAt(new \MongoDate()); }
public function __construct() { parent::__construct(); // your own logic }