wp_back/wp-content/plugins/smart-slider-3/Nextend/Framework/Pattern/GetPathTrait.php

15 lines
247 B
PHP
Raw Normal View History

2024-05-20 15:37:46 +03:00
<?php
namespace Nextend\Framework\Pattern;
use ReflectionClass;
trait GetPathTrait {
public static function getPath() {
$reflection = new ReflectionClass(static::class);
return dirname($reflection->getFileName());
}
}