GetPathTrait.php 247 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <?php namespace Nextend\Framework\Pattern; use ReflectionClass; trait GetPathTrait { public static function getPath() { $reflection = new ReflectionClass(static::class); return dirname($reflection->getFileName()); } }