/** * Returns an instance of class (singleton pattern implementation). * * @return NEWSFEED_BOL_LikeDao */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
public function removeLikesByUserId($userId) { $this->likeDao->removeLikesByUserId($userId); }