public function createFromData($data)
 {
     parent::createFromData($data);
     $this->action = $data['action'];
     $this->release = Release::createFromData($data['release']);
     return $this;
 }
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->action = $data['action'];
     $this->user = User::createFromData($data['sender']);
     return $this;
 }
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->deployment = Deployment::createFromData($data['deployment']);
     $this->sender = User::createFromData($data['sender']);
     return $this;
 }
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->sender = User::createFromData($data['sender']);
     $this->pages = $this->parsePages($data['pages']);
     return $this;
 }
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->forkedRepository = Repository::createFromData($data['forkee']);
     $this->owner = $this->forkedRepository->getOwner();
     $this->forker = $this->repository->getOwner();
     return $this;
 }
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->action = $data['action'];
     $this->comment = Comment::createFromData($data['comment']);
     $this->pullRequest = PullRequest::createFromData($data['pull_request']);
     $this->sender = User::createFromData($data['comment']['user']);
     return $this;
 }
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->action = $data['action'];
     $this->issue = Issue::createFromData($data['issue']);
     $this->comment = Comment::createFromData($data['comment']);
     $this->user = $this->comment->getUser();
     return $this;
 }
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->action = $data['action'];
     $this->number = $data['number'];
     $this->pullRequest = PullRequest::createFromData($data['pull_request']);
     $this->repository = Repository::createFromData($data['repository']);
     $this->sender = User::createFromData($data['sender']);
     return $this;
 }
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->branches = $data['branches'];
     $this->committer = User::createFromData($data['commit']['committer']);
     $this->description = $data['description'];
     $this->sha = $data['sha'];
     $this->state = $data['state'];
     $this->targetUrl = $data['target_url'];
     return $this;
 }
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->action = $data['action'];
     $this->assignee = isset($data['assignee']) ? User::createFromData($data['assignee']) : null;
     $this->label = isset($data['label']) ? Label::createFromData($data['label']) : null;
     $this->issue = Issue::createFromData($data['issue']);
     $this->repository = Repository::createFromData($data['repository']);
     $this->sender = User::createFromData($data['sender']);
     return $this;
 }
Esempio n. 11
0
 public function createFromData($data)
 {
     parent::createFromData($data);
     $this->before = $data['before'];
     $this->commits = $data['commits'];
     $this->distinctSize = $data['distinct_size'];
     $this->head = $data['head'];
     $this->pusher = $data['pusher']['name'];
     $this->ref = $data['ref'];
     $this->sender = User::createFromData($data['sender']);
     $this->size = $data['size'];
     return $this;
 }