protected function getStatus($statusId)
    {
        if (!isset($this->cachedStatuses[$statusId])) {
            $this->cachedStatuses[$statusId] = $this->statusRepository->findOneById($statusId);
        }

        return $this->cachedStatuses[$statusId];
    }
protected function getStatus($statusId)
    {
        if (!isset($this->cachedStatuses[$statusId])) {
            $this->cachedStatuses[$statusId] = $this->statusRepository->findOneById($statusId);
        }

        return $this->cachedStatuses[$statusId];
    }
protected function getStatus ( $ statusId ) { if ( ! isset ( $ this -> cachedStatuses [ $ statusId ] ) ) { $ this -> cachedStatuses [ $ statusId ] = $ this -> statusRepository -> findOneById ( $ statusId ) ; } return $ this -> cachedStatuses [ $ statusId ] ; }
Retrieve a status from the cache or DB

@param string $statusId

@return mixed
Retrieve a status from the cache or DB