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