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->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;
 }