public function getObjects($query, $object)
    {
        $this->statement = $this->db->query($query);
        if ($this->statement) {
            $this->statement->setFetchMode(\PDO::FETCH_CLASS, $object);
            $objects =  $this->statement->fetchAll();
            if ($objects) {
                return $objects;
            }
        }
        return false;
    }