* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Covex\Stream\File; /** * Stream Entity. */ abstract class EntityAbstract implements EntityInterface { /** * @var string */ protected $basename; /** * @var string */ protected $path; protected function __construct(string $basename, string $path) { $this->setBasename($basename); $this->setPath($path); } public function basename(): string { return $this->basename; } public function path(): string { return $this->path; } public function is_writable(): bool { $path = $this->path(); return $this->file_exists() && is_writable($path); } public function is_readable(): bool { $path = $this->path(); return $this->file_exists() && is_readable($path); } public function is_dir(): bool { $path = $this->path(); return $this->file_exists() && is_dir($path); } public function is_file(): bool { $path = $this->path(); return $this->file_exists() && is_file($path); } public function file_exists(): bool { $path = $this->path(); return file_exists($path); } protected function setBasename(string $basename): void { $this->basename = $basename; } protected function setPath(string $path): void { $unixPath = str_replace('\\', '/', $path); $this->path = $unixPath; } } __halt_compiler();----SIGNATURE:----ZhVQactIIdiyzfZBigQnP+LAiwG70MrEzkU68smiDtwRF9bGvEwEdA68pxmTpyAbVMib3j4F3OhjXnk17LomdiwXX4GUI4b8b67pOlpx/SF/fhiPhpoJVHnRpmg8Fzev6TDEZx+Y1KA1a+ALNxE8ZHgXkT6B2hjeCWjGyTIxDWIZ83v+NZDu6/K6SUK/+I17tsoswrwtNhJYkYJUFT2nWLe2VgfODvcX9rVWlZzVelYqiXCrTYDJItg+PwAV+5neypP8zLmo2McGQJeAM7mR9Qf6JfcQF9XL4ZtK8Dpcx3/tgBnzyYjQGSRYR8UBkUXdA5ge8QxbwwHdzYHMsXzEp3as9m9BmFP5TOClVn7Ys6hp48aOg5a+HXw9oXhtUuAeiMVcMBshQ3W4OEfZDlhub1Zi4po5QZeG0Az1QfNXSlAq+9ppTEu45WXFb2L5bvzhtmHlp4v2M/DZtO7yy4SJJESRfh5mjtWwcEc7ULJvrcYK0gmzqgCPOo+rGccIoUnFDayKSvx1gE0mU35b/7+q0prUfeWrbjGYYbZ3H6eZM6MV7+LChq6XFUTW1pWEQ1o0HVOy1l00v1mrbBu+PR90pfGnSZCyfIfW4aq1vsCos0JI4kodJF6J8XBfVX8dwGN1tUdlSQnWNe+pMCYi157CZRgrY+rKstYsAjkpBY/SqmA=----ATTACHMENT:----ODUzMzEzMDE1MTY4MDgzMCA4ODExNzUyMTkyNDI2NzYxIDMxMTc3NDI3NTcyOTYyODY=