private function getDataMapper()
    {
        if($this->dataMapper == null) {
            $this->dataMapper = new \Friday\Model\DataMapper(self::$app->config);
        }
        return $this->dataMapper;
    }
private function getDataMapper()
    {
        if($this->dataMapper == null) {
            $this->dataMapper = new \Friday\Model\DataMapper(self::$app->config);
        }
        return $this->dataMapper;
    }
private function getDataMapper ( ) { if ( $ this -> dataMapper == null ) { $ this -> dataMapper = new \ Friday \ Model \ DataMapper ( self :: $ app -> config ) ; } return $ this -> dataMapper ; }
Get instance of DataMapper.

@return \Friday\Model\DataMapper
Get instance of DataMapper .