Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public static function getMetadata() |
||
16 | { |
||
17 | $fqcnParts = explode('\\', get_called_class()); |
||
18 | $name = Inflector::convertToSnakeCase(end($fqcnParts)); |
||
19 | $description = null; |
||
20 | |||
21 | if (defined('self::DESCRIPTION')) { |
||
22 | $description = self::DESCRIPTION; |
||
23 | } |
||
24 | |||
25 | return Metadata::create($name, $description); |
||
26 | } |
||
27 | } |
||
28 |