public function getResource($resourceId)
    {
        if (isset($this->resources[$resourceId])) {
            return $this->resources[$resourceId];
        }

        $dynamicResource = $this->dynamicResourceMapper($resourceId);

        if (!empty($dynamicResource)) {
            return $dynamicResource;
        }

        return null;
    }
public function getResource($resourceId)
    {
        if (isset($this->resources[$resourceId])) {
            return $this->resources[$resourceId];
        }

        $dynamicResource = $this->dynamicResourceMapper($resourceId);

        if (!empty($dynamicResource)) {
            return $dynamicResource;
        }

        return null;
    }
public function getResource ( $ resourceId ) { if ( isset ( $ this -> resources [ $ resourceId ] ) ) { return $ this -> resources [ $ resourceId ] ; } $ dynamicResource = $ this -> dynamicResourceMapper ( $ resourceId ) ; if ( ! empty ( $ dynamicResource ) ) { return $ dynamicResource ; } return null ; }
getResource
Return the requested resource
Can be used to return resources dynamically at run-time

@param string $resourceId resourceId

@return array|null
getResource Return the requested resource Can be used to return resources dynamically at run - time