| 1 |
<?php |
| 2 |
|
| 3 |
declare (strict_types=1); |
| 4 |
namespace WCPOS\Vendor\Sabberworm\CSS; |
| 5 |
|
| 6 |
/** |
| 7 |
* Provides a method to obtain the short name of the instantiated class (i.e. without namespace prefix). |
| 8 |
* |
| 9 |
* @internal |
| 10 |
*/ |
| 11 |
trait ShortClassNameProvider |
| 12 |
{ |
| 13 |
/** |
| 14 |
* @return non-empty-string |
| 15 |
*/ |
| 16 |
private function getShortClassName() : string |
| 17 |
{ |
| 18 |
return (new \ReflectionClass($this))->getShortName(); |
| 19 |
} |
| 20 |
} |
| 21 |
|