Contao\ZipReader::__get PHP Метод

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

Return a property of the archive header or the current file
public __get ( string $strKey ) : mixed | null
$strKey string The property name
Результат mixed | null The property value or null
    public function __get($strKey)
    {
        switch ($strKey) {
            // Header
            case 'number_of_this_disk':
            case 'number_of_disk_with_cd':
            case 'total_cd_entries_disk':
            case 'total_cd_entries':
            case 'size_of_cd':
            case 'offset_start_cd':
            case 'zipfile_comment_length':
            case 'zipfile_comment':
                return $this->arrHeader[$strKey];
                break;
                // Current file
            // Current file
            default:
                if ($this->intIndex < 0) {
                    $this->first();
                }
                if (isset($this->arrFiles[$this->intIndex][$strKey])) {
                    return $this->arrFiles[$this->intIndex][$strKey];
                }
                break;
        }
        return null;
    }