public function getBuild()
    {
        $key = $this->getBuildId();

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

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

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

        return $rtn;
    }
public function getBuild()
    {
        $key = $this->getBuildId();

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

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

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

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

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