src/BoomCMS/FileInfo/Drivers/DefaultDriver.php
protected function oneOf(array $keys, $default = null)
    {
        $metadata = $this->getMetadata();

        foreach ($keys as $key) {
            if (isset($metadata[$key])) {
                return $metadata[$key];
            }
        }

        return $default;
    }
protected function oneOf(array $keys, $default = null)
    {
        $metadata = $this->getMetadata();

        foreach ($keys as $key) {
            if (isset($metadata[$key])) {
                return $metadata[$key];
            }
        }

        return $default;
    }
protected function oneOf ( array $ keys , $ default = null ) { $ metadata = $ this -> getMetadata ( ) ; foreach ( $ keys as $ key ) { if ( isset ( $ metadata [ $ key ] ) ) { return $ metadata [ $ key ] ; } } return $ default ; }
Loop through an array of metadata keys and return the first one that exists.

@param array $keys
@param mixed $default

@return mixed
Loop through an array of metadata keys and return the first one that exists .