ImageEvent::__get()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
c 0
b 0
f 0
nc 2
nop 1
dl 0
loc 8
rs 10
1
<?php
2
3
namespace OkayBueno\Images\Events;
4
5
/**
6
 * Class ImageEvent
7
 * @package OkayBueno\Images\Events
8
 */
9
abstract class ImageEvent
10
{
11
12
    /**
13
     * Magic method to get the private/protected properties from the event class.
14
     * @param $property
15
     * @return null
16
     */
17
    public function __get( $property )
18
    {
19
        if ( property_exists( $this, $property ) )
20
        {
21
            return $this->$property;
22
        }
23
24
        return NULL;
25
    }
26
}
27