CoreFiles by mySites.guru
FileInfoMetadataBase.php27 lines, 794 bytes, from Joomla_5.4.11-Stable-Full_Package.zip
Raw History Compare with 5.4.10
md5
75a34d8ff7c435b33d27b8ef34b0fa1b
sha1
ff3575950ef2050d4a91a5a49e4c09f24f065293
sha256
946e8a1d863c16a46a185b1bb23b0b38170a324c7790acd51da0002c2aab4871
<?php

namespace Tuf\Metadata;

/**
 * Base class for metadata objects that store information about other metadata files.
 */
abstract class FileInfoMetadataBase extends MetadataBase
{
    /**
     * Gets file information value under the 'meta' key.
     *
     * @param string $key
     *   The array key under 'meta'.
     * @param boolean $allowUntrustedAccess
     *   Whether this method should access even if the metadata is not trusted.
     *
     * @return array|null
     *   The file information if available or null if not set.
     */
    public function getFileMetaInfo(string $key, bool $allowUntrustedAccess = false): ?array
    {
        $this->ensureIsTrusted($allowUntrustedAccess);
        $signed = $this->getSigned();
        return $signed['meta'][$key] ?? null;
    }
}

The same content is in 136 releases, Joomla 5.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.