/** * Returns an instance of class (singleton pattern implementation). * * @return BOL_ComponentSettingDao */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * * @param int $placeId * @return BOL_Scheme */ public function findSchemeByPlaceId($placeId, $entityId) { $placeSchemeDto = $this->placeSchemeDao->findPlaceScheme($placeId, $entityId); if (!$placeSchemeDto) { return null; } return $this->schemeDao->findById($placeSchemeDto->schemeId); }