/**
  * @param array $data
  *
  * @return GithubUserSource
  */
 protected function getGithubRepoOwner(array $data)
 {
     return new GithubRepoOwner(new GithubUserId($data['id']), $data['login'], $data['avatar_url'], GithubTypeFactory::create($data['type']));
 }
Ejemplo n.º 2
0
 /**
  * @param array $data
  *
  * @return GithubRepoOwner
  */
 public static function deserialize(array $data) : GithubRepoOwner
 {
     return new static(new GithubUserId($data['githubUserId']), $data['username'], $data['avatarUrl'], GithubTypeFactory::create($data['type']));
 }