Example #1
0
 /**
  * Create a new account object from a Twitter id
  *
  * @since 1.0.0
  *
  * @param string $id Twitter account identifier
  *
  * @return self|null
  */
 public static function fromID($id)
 {
     $account = new self();
     $account->setID($id);
     if (!$account->hasID()) {
         return;
     }
     return $account;
 }