public function getProject()
    {
        $key = $this->getProjectId();

        if (empty($key)) {
            return null;
        }

        $cacheKey   = 'Cache.Project.' . $key;
        $rtn        = $this->cache->get($cacheKey, null);

        if (empty($rtn)) {
            $rtn    = Factory::getStore('Project', 'PHPCI')->getById($key);
            $this->cache->set($cacheKey, $rtn);
        }

        return $rtn;
    }
public function getProject()
    {
        $key = $this->getProjectId();

        if (empty($key)) {
            return null;
        }

        $cacheKey   = 'Cache.Project.' . $key;
        $rtn        = $this->cache->get($cacheKey, null);

        if (empty($rtn)) {
            $rtn    = Factory::getStore('Project', 'PHPCI')->getById($key);
            $this->cache->set($cacheKey, $rtn);
        }

        return $rtn;
    }
public function getProject ( ) { $ key = $ this -> getProjectId ( ) ; if ( empty ( $ key ) ) { return null ; } $ cacheKey = 'Cache.Project.' . $ key ; $ rtn = $ this -> cache -> get ( $ cacheKey , null ) ; if ( empty ( $ rtn ) ) { $ rtn = Factory :: getStore ( 'Project' , 'PHPCI' ) -> getById ( $ key ) ; $ this -> cache -> set ( $ cacheKey , $ rtn ) ; } return $ rtn ; }
Get the Project model for this Build by Id.

@uses \PHPCI\Store\ProjectStore::getById()
@uses \PHPCI\Model\Project
@return \PHPCI\Model\Project
Get the Project model for this Build by Id .