| Total Complexity | 3 | 
| Total Lines | 28 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 20 | abstract class BaseConvention  | 
            ||
| 21 | { | 
            ||
| 22 | /**  | 
            ||
| 23 | * Returns the namespace part of a class  | 
            ||
| 24 | *  | 
            ||
| 25 | * @param string $class  | 
            ||
| 26 | *  | 
            ||
| 27 | * @return string  | 
            ||
| 28 | */  | 
            ||
| 29 | protected function getNamespace(string $class)  | 
            ||
| 30 |     { | 
            ||
| 31 | return $this->oneLevelUp($class);  | 
            ||
| 32 | }  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * Chops the last part of the namespace eg \a\b\c => \a\b  | 
            ||
| 36 | *  | 
            ||
| 37 | * @param string $namespace  | 
            ||
| 38 | *  | 
            ||
| 39 | * @return bool|string  | 
            ||
| 40 | */  | 
            ||
| 41 | protected function oneLevelUp(string $namespace)  | 
            ||
| 48 | }  | 
            ||
| 49 | }  | 
            ||
| 50 |