Beispiel #1
0
 /**
  * @param $username
  * @param $password
  * @param $role
  * @return User
  */
 public static function create($username, $password, $role)
 {
     $users = new User();
     $users->setUsername($username);
     $users->setPassword($password);
     $users->setRole($role);
     $users->setCreatedAt(new \DateTime());
     return $users;
 }
 /**
  * {@inheritDoc}
  */
 public function setCreatedAt($createdAt)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', array($createdAt));
     return parent::setCreatedAt($createdAt);
 }