LazyRecord\Metadata::getAttribute PHP Метод

getAttribute() публичный Метод

Get an attribute value from the database source.
public getAttribute ( string $key )
$key string
    public function getAttribute($key)
    {
        $stm = $this->connection->prepare('select * from __meta__ where name = :name');
        $stm->execute(array(':name' => $key));
        $data = $stm->fetch(PDO::FETCH_OBJ);
        return $data ? $data->value : null;
    }