Completed
Push — master ( 8a38f1...a11cc6 )
by Sebastien
02:33
created

PageBuildEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 5
Bugs 0 Features 2
Metric Value
wmc 2
c 5
b 0
f 2
lcom 0
cbo 1
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getClassModel() 0 4 1
A getData() 0 4 1
1
<?php
2
3
namespace Smalot\Github\Webhook\Event;
4
5
use Smalot\Github\Webhook\Model\PageBuildModel;
6
7
/**
8
 * Class PageBuildEvent
9
 * @package Smalot\Github\Webhook\Event
10
 *
11
 * Represents an attempted build of a GitHub Pages site, whether successful or not.
12
 *
13
 * Triggered on push to a GitHub Pages enabled branch (gh-pages for project pages, master for user and organization pages).
14
 *
15
 * Events of this type are not visible in timelines, they are only used to trigger hooks.
16
 */
17
class PageBuildEvent extends EventBase
18
{
19
    /**
20
     * @return string
21
     */
22
    protected function getClassModel()
23
    {
24
        return '\Smalot\Github\Webhook\Model\PageBuildModel';
25
    }
26
27
    /**
28
     * @return PageBuildModel
29
     */
30
    public function getData()
31
    {
32
        return $this->model;
33
    }
34
}
35