15 lines
247 B
PHP
15 lines
247 B
PHP
|
<?php
|
||
|
|
||
|
namespace Nextend\Framework\Pattern;
|
||
|
|
||
|
use ReflectionClass;
|
||
|
|
||
|
trait GetPathTrait {
|
||
|
|
||
|
public static function getPath() {
|
||
|
|
||
|
$reflection = new ReflectionClass(static::class);
|
||
|
|
||
|
return dirname($reflection->getFileName());
|
||
|
}
|
||
|
}
|