src/Db.php
public function fetch($query)
    {
        $result = $this->query($query);

        return $result->fetch(\PDO::FETCH_ASSOC);
    }
public function fetch($query)
    {
        $result = $this->query($query);

        return $result->fetch(\PDO::FETCH_ASSOC);
    }
public function fetch ( $ query ) { $ result = $ this -> query ( $ query ) ; return $ result -> fetch ( \ PDO :: FETCH_ASSOC ) ; }
Return associate array with all data of one row in table

@param $query
@return mixed
Return associate array with all data of one row in table