| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 26 | public function __construct($year = null)  | 
            ||
| 27 |     { | 
            ||
| 28 |         if ($year === null) { | 
            ||
| 29 |             $year = (int) date('Y'); | 
            ||
| 30 | }  | 
            ||
| 31 | |||
| 32 | $this->setYear($year);  | 
            ||
| 33 | |||
| 34 | $this->init();  | 
            ||
| 35 | |||
| 36 | $reflection = new ReflectionClass($this);  | 
            ||
| 37 | $namespace = $reflection->getNamespaceName();  | 
            ||
| 38 | $region = substr($namespace, strrpos($namespace, '\\') + 1);  | 
            ||
| 39 | |||
| 40 | $this->setRegion($region);  | 
            ||
| 41 | }  | 
            ||
| 59 |