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->getFilename());
return true;
}
public function canBeIncluded () : bool {
return $this->exists() && $this->isReadable();
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Jul 8, 15:07 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3875041
Default Alt Text
CodeFile.php (449 B)

Event Timeline