src/Model/AbstractModel.php
public function getMetaValueFirstSet(array $names, $fallback = null)
    {
        $meta = $this->getMeta();
        foreach ($names as $name) {
            if (array_key_exists($name, $meta)) {
                return $meta[$name];
            }
        }
        return $fallback;
    }
public function getMetaValueFirstSet(array $names, $fallback = null)
    {
        $meta = $this->getMeta();
        foreach ($names as $name) {
            if (array_key_exists($name, $meta)) {
                return $meta[$name];
            }
        }
        return $fallback;
    }
public function getMetaValueFirstSet ( array $ names , $ fallback = null ) { $ meta = $ this -> getMeta ( ) ; foreach ( $ names as $ name ) { if ( array_key_exists ( $ name , $ meta ) ) { return $ meta [ $ name ] ; } } return $ fallback ; }
Returns the value of the first meta value assigned to the name
@param string[] $names the meta names to check
@param mixed $fallback the fallback value if anyone is set
@return mixed the meta information value
Returns the value of the first meta value assigned to the name