ImageEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __get() 0 8 2
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