PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
3rdparty
/
dropbox
/
src
/
Store
<?php namespace Kunnu\Dropbox\Store; use InvalidArgumentException; use Kunnu\Dropbox\Exceptions\DropboxClientException; use Kunnu\Dropbox\Store\PersistentDataStoreInterface; /** * Thanks to Facebook * * @link https://developers.facebook.com/docs/php/PersistentDataInterface */ class PersistentDataStoreFactory { /** * Make Persistent Data Store * * @param null|string|\Kunnu\Dropbox\Store\PersistentDataStoreInterface $store * * @throws InvalidArgumentException * * @return \Kunnu\Dropbox\Store\PersistentDataStoreInterface */ public static function makePersistentDataStore($store = null) { if (is_null($store) || $store === 'session') { return new SessionPersistentDataStore(); } if ($store instanceof PersistentDataStoreInterface) { return $store; } throw new InvalidArgumentException('The persistent data store must be set to null, "session" or be an instance of use \Kunnu\Dropbox\Store\PersistentDataStoreInterface'); } }
[+]
..
[-] PersistentDataStoreInterface.php
[edit]
[-] PersistentDataStoreFactory.php
[edit]
[-] SessionPersistentDataStore.php
[edit]