Habari\MediaAsset::__get PHP Метод

__get() публичный Метод

Retrieve attributes about this asset
public __get ( string $name ) : mixed
$name string The name of the property to retrieve
Результат mixed The value requested
    public function __get($name)
    {
        switch ($name) {
            case 'content':
                $output = $this->_get();
                break;
            case 'is_dir':
                $output = $this->is_dir;
                break;
            case 'path':
                $output = $this->path;
                break;
            case 'basename':
                $output = basename($this->path);
                break;
            default:
                $output = $this->props[$name];
                break;
        }
        $output = Plugins::filter('mediaasset', $output, $name);
        return $output;
    }