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

PageBuildEvent::getClassModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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