public function executeFetchOne(
        $query = null,
        $params = []
    ) {

        $this->execute($query, $params);
        return $this->fetchOne();
    }
public function executeFetchOne(
        $query = null,
        $params = []
    ) {

        $this->execute($query, $params);
        return $this->fetchOne();
    }
public function executeFetchOne ( $ query = null , $ params = [ ] ) { $ this -> execute ( $ query , $ params ) ; return $ this -> fetchOne ( ) ; }
Execute a select-query with arguments and return one resultset.

@param string  $query      the SQL query with ?.
@param array   $params     array which contains the argument to replace ?.

@return array with resultset.
Execute a select - query with arguments and return one resultset .