JBZoo\Data\Data::_readFile PHP Метод

_readFile() защищенный Метод

protected _readFile ( string $filePath ) : null | string
$filePath string
Результат null | string
    protected function _readFile($filePath)
    {
        $contents = null;
        if ($realPath = realpath($filePath)) {
            $handle = fopen($realPath, "rb");
            $contents = fread($handle, filesize($realPath));
            fclose($handle);
        }
        return $contents;
    }