PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
vendor
/
nette
/
utils
/
src
/
Utils
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ declare (strict_types=1); namespace RectorPrefix202411\Nette\Utils; use RectorPrefix202411\Nette; /** * Represents the file or directory returned by the Finder. * @internal do not create instances directly */ final class FileInfo extends \SplFileInfo { /** * @var string */ private $relativePath; public function __construct(string $file, string $relativePath = '') { parent::__construct($file); $this->setInfoClass(static::class); $this->relativePath = $relativePath; } /** * Returns the relative directory path. */ public function getRelativePath() : string { return $this->relativePath; } /** * Returns the relative path including file name. */ public function getRelativePathname() : string { return ($this->relativePath === '' ? '' : $this->relativePath . \DIRECTORY_SEPARATOR) . $this->getBasename(); } /** * Returns the contents of the file. * @throws Nette\IOException */ public function read() : string { return FileSystem::read($this->getPathname()); } /** * Writes the contents to the file. * @throws Nette\IOException */ public function write(string $content) : void { FileSystem::write($this->getPathname(), $content); } }
[-] Html.php
[edit]
[-] ReflectionMethod.php
[edit]
[+]
..
[-] Paginator.php
[edit]
[-] FileSystem.php
[edit]
[-] Arrays.php
[edit]
[-] Type.php
[edit]
[-] Reflection.php
[edit]
[-] Finder.php
[edit]
[-] FileInfo.php
[edit]
[-] ArrayList.php
[edit]
[-] Callback.php
[edit]
[-] Floats.php
[edit]
[-] ImageType.php
[edit]
[-] Image.php
[edit]
[-] exceptions.php
[edit]
[-] DateTime.php
[edit]
[-] Helpers.php
[edit]
[-] Validators.php
[edit]
[-] Json.php
[edit]
[-] Strings.php
[edit]
[-] ImageColor.php
[edit]
[-] Iterables.php
[edit]
[-] ObjectHelpers.php
[edit]
[-] Random.php
[edit]
[-] ArrayHash.php
[edit]