src/Sonic.php
public function setSocialRecordCaching(ISocialRecordCaching $srCachingObject)
	{
		if(self::$_instance === NULL)
			throw new SonicRuntimeException('Sonic instance not initialized');
		
		if(!array_key_exists('sgoendoer\Sonic\Identity\ISocialRecordCaching', class_implements($srCachingObject)))
		{
			throw new SonicRuntimeException('SocialRecordCaching must implement goendoer\Sonic\Identity\ISocialRecordCaching');
		}
		else
			$this->socialRecordCache = $srCachingObject;
		return $this; // TODO make static?
	}
public function setSocialRecordCaching(ISocialRecordCaching $srCachingObject)
	{
		if(self::$_instance === NULL)
			throw new SonicRuntimeException('Sonic instance not initialized');
		
		if(!array_key_exists('sgoendoer\Sonic\Identity\ISocialRecordCaching', class_implements($srCachingObject)))
		{
			throw new SonicRuntimeException('SocialRecordCaching must implement goendoer\Sonic\Identity\ISocialRecordCaching');
		}
		else
			$this->socialRecordCache = $srCachingObject;
		return $this; // TODO make static?
	}
public function setSocialRecordCaching ( ISocialRecordCaching $ srCachingObject ) { if ( self :: $ _instance === NULL ) throw new SonicRuntimeException ( 'Sonic instance not initialized' ) ; if ( ! array_key_exists ( 'sgoendoer\Sonic\Identity\ISocialRecordCaching' , class_implements ( $ srCachingObject ) ) ) { throw new SonicRuntimeException ( 'SocialRecordCaching must implement goendoer\Sonic\Identity\ISocialRecordCaching' ) ; } else $ this -> socialRecordCache = $ srCachingObject ; return $ this ; // TODO make static?
 }
sets the SocialRecordCaching instance

@param $srCachingObject The ISocialRecordCaching instance
@return Sonic instance
sets the SocialRecordCaching instance