/var/www/vhosts/ihelp.ro/httpdocs/vendor/psy/psysh/src/Readline/Hoa
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/psy/psysh/src/Readline/Hoa/IteratorSplFileInfo.php (3294B)
getMTime()) {
$this->_hash = \md5($this->getPathname().$mtime);
}
$this->_relativePath = $relativePath;
return;
}
/**
* Get the hash.
*/
public function getHash(): string
{
return $this->_hash;
}
/**
* Get the MTime.
*/
public function getMTime(): int
{
try {
return parent::getMTime();
} catch (\RuntimeException $e) {
return -1;
}
}
/**
* Set relative path.
*/
public function setRelativePath(string $relativePath)
{
$old = $this->_relativePath;
$this->_relativePath = $relativePath;
return $old;
}
/**
* Get relative path (if given).
*/
public function getRelativePath()
{
return $this->_relativePath;
}
/**
* Get relative pathname (if possible).
*/
public function getRelativePathname(): string
{
if (null === $relative = $this->getRelativePath()) {
return $this->getPathname();
}
return \substr($this->getPathname(), \strlen($relative));
}
}