Page MenuHomeDevCentral

CodeFile.php
No OneTemporary

CodeFile.php

<?php
namespace Keruald\OmniTools\Reflection;
use Keruald\OmniTools\IO\File;
class CodeFile extends File {
///
/// Include methods
///
public function tryInclude () : bool {
if (!$this->canBeIncluded()) {
return false;
}
include($this->getPath());
return true;
}
public function canBeIncluded () : bool {
return $this->exists() && $this->isReadable();
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Nov 13, 15:37 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3107627
Default Alt Text
CodeFile.php (445 B)

Event Timeline