Corcel\PostMetaCollection::__get PHP Method

__get() public method

Search for the desired key and return only the row that represent it
public __get ( string $key ) : string
$key string
return string
    public function __get($key)
    {
        foreach ($this->items as $item) {
            if ($item->meta_key == $key) {
                return $item->value;
            }
        }
    }
PostMetaCollection