Exemplo n.º 1
0
 /**
  * Get the account object by id, or false
  *
  * @param int $id
  * @return Account|null
  */
 public static function findById($id)
 {
     $account = new Account($id);
     if (!$account->getIdentity()) {
         return null;
     } else {
         return $account;
     }
 }
Exemplo n.º 2
0
 public function testAccountHasIdentity()
 {
     $account = new Account($this->testAccountId);
     $this->assertNotEmpty($account->getIdentity());
 }