| Server IP : 46.105.57.169 / Your IP : 216.73.216.144 Web Server : Apache System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : maitricfuz ( 93378) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/maitricfuz/www/maitric/libraries/vendor/php-tuf/php-tuf/src/Metadata/ |
Upload File : |
<?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;
}
}