Exemplo n.º 1
0
 /**
  * @param LinkedinUser $linkedinUser
  */
 public function setLinkedinUser(LinkedinUser $linkedinUser, $withData = false)
 {
     $this->linkedinUser = $linkedinUser;
     if ($withData) {
         $this->setName($linkedinUser->getFirstName() . ' ' . $linkedinUser->getLastName());
         $this->setEmail($linkedinUser->getEmail());
         $this->setAvatar($linkedinUser->getPictureUrl());
     }
 }
Exemplo n.º 2
0
 /**
  * @param LinkedinUser $linkedinUser
  * @return $this
  */
 public function updateFromAnother(LinkedinUser $linkedinUser)
 {
     $this->setEmail($linkedinUser->getEmail());
     $this->setFirstName($linkedinUser->getFirstName());
     $this->setLastName($linkedinUser->getLastName());
     $this->setNumConnections($linkedinUser->getNumConnections());
     $this->setPictureUrl($linkedinUser->getPictureUrl());
     $this->setSiteUrl($linkedinUser->getSiteUrl());
     $this->setLinkedinSkills($linkedinUser->getLinkedinSkills());
     $this->setCounts($linkedinUser->getCounts());
     return $this;
 }