wp_back/wp-content/plugins/smart-slider-3/Nextend/Framework/Pattern/GetPathTrait.php
2024-05-20 15:37:46 +03:00

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());
}
}