Пример #1
0
 /**
  * @param \afoozle\GithubWebhook\Entity\Payload $payload
  * @param array $parsedData
  * @return \afoozle\GithubWebhook\Entity\Payload
  */
 private function mapHeadCommit(Payload $payload, array $parsedData)
 {
     $commitMapper = new CommitMapper();
     $commitObject = $commitMapper->mapFromDataArray($parsedData);
     $payload->setHeadCommit($commitObject);
     return $payload;
 }