File "Link.php"
Full Path: /home/flipjqml/onlinebetsolution.com/wp-content/plugins/disable-search/src/fs/Link.php
File size: 793 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
*
*/
class Loco_fs_Link extends Loco_fs_File {
/**
* @var Loco_fs_File
*/
private $real;
/**
* {@inheritdoc}
*/
public function __construct( $path ){
parent::__construct($path);
$real = realpath( $this->getPath() );
if( is_string($real) ){
if( is_dir($real) ){
$this->real = new Loco_fs_Directory($real);
}
else {
$this->real = new Loco_fs_File($real);
}
}
}
/**
* @return Loco_fs_File|null
*/
public function resolve(){
return $this->real;
}
/**
* {@inheritdoc}
*/
public function isDirectory(){
return $this->real instanceof Loco_fs_Directory;
}
}