Ejemplo n.º 1
0
 public function is(User $user = null)
 {
     return $user && $user->getUsernameCanonical() === $this->getUsernameCanonical();
 }
Ejemplo n.º 2
0
 public function __construct(User $user)
 {
     $this->id = $user->getUsernameCanonical();
     $this->addEntry($user->getCreatedAt()->getTimestamp(), User::STARTING_ELO, self::TYPE_START);
 }
Ejemplo n.º 3
0
 public function isOnline(User $user)
 {
     return $this->isUsernameOnline($user->getUsernameCanonical());
 }
Ejemplo n.º 4
0
 public function findOneByUser(User $user)
 {
     return $this->findOneBy(array('id' => $user->getUsernameCanonical()));
 }