| Total Complexity | 5 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | class TravisCIService implements ServiceInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * General events |
||
| 23 | */ |
||
| 24 | const PUSH = 'push'; |
||
| 25 | const PULL_REQUEST = 'pull_request'; |
||
| 26 | const CRON = 'cron'; |
||
| 27 | const API = 'api'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | private $options; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var array |
||
| 36 | */ |
||
| 37 | private $headers = []; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var mixed |
||
| 41 | */ |
||
| 42 | private $payload; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * BitbucketService constructor. |
||
| 46 | * |
||
| 47 | * @param array $options |
||
| 48 | */ |
||
| 49 | public function __construct(array $options) |
||
| 50 | { |
||
| 51 | $this->options = $options; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function getHeaders(): array |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return string |
||
| 64 | * @throws WebhookManagerException |
||
| 65 | */ |
||
| 66 | public function getEvent(): string |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return mixed |
||
| 73 | */ |
||
| 74 | public function getPayload() |
||
| 81 | } |
||
| 82 | } |