public function getResource($resource) { return isset($this->resources[$resource]) ? $this->resources[$resource] : null; }