X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fphp-instagram-api%2Fphp-instagram-api%2FInstagram%2FCore%2FBaseObjectAbstract.php;fp=vendor%2Fphp-instagram-api%2Fphp-instagram-api%2FInstagram%2FCore%2FBaseObjectAbstract.php;h=0000000000000000000000000000000000000000;hp=8d589e8748d1f30b2e336813d0b84461b48ce337;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/php-instagram-api/php-instagram-api/Instagram/Core/BaseObjectAbstract.php b/vendor/php-instagram-api/php-instagram-api/Instagram/Core/BaseObjectAbstract.php deleted file mode 100644 index 8d589e874..000000000 --- a/vendor/php-instagram-api/php-instagram-api/Instagram/Core/BaseObjectAbstract.php +++ /dev/null @@ -1,113 +0,0 @@ - -* @license http://opensource.org/licenses/mit-license.php The MIT License -*/ - -namespace Instagram\Core; - -/** - * Base object that all objects extend from - * - * Provides core functionality - */ -abstract class BaseObjectAbstract { - - /** - * Object data - * - * @var StdClass - * @access protected - */ - protected $data; - - /** - * Proxy object that does all the API heavy lifting - * - * @var \Instagram\Core\Proxy - * @access protected - */ - protected $proxy = null; - - /** - * Get the ID returned from the API - * - * @return string - * @access public - */ - public function getId() { - return $this->data->id; - } - - /** - * Get the API ID - * - * Some API objects don't have IDs (tags, some locations ) - * Those objects define their own getId() methods to return a psuedo ID - * Tags = tag name, ID-less locations return null - * - * @return string Returns the ID - * @access public - */ - public function getApiId() { - return $this->getId(); - } - - /** - * Constructor - * - * @param StdClass $data Object's data - * @param \Instagram\Core\Proxy $proxy Object's proxy - * @access public - */ - public function __construct( $data, \Instagram\Core\Proxy $proxy = null ) { - $this->setData( $data ); - $this->proxy = $proxy; - } - - /** - * Set the object's data - * - * @param StdClass $data Object data - * @access public - */ - public function setData( $data ) { - $this->data = $data; - } - - /** - * Get the object's data - * - * @return Stdclass Returns the object's data - * @access public - */ - public function getData() { - return $this->data; - } - - /** - * Magic method to get data - * - * This may be removed in future versions - * - * @param string $var Variable ot get from the data - * @return mixed Returns the variable or null - * @access public - */ - public function __get( $var ) { - return isset( $this->data->$var ) ? $this->data->$var : null; - } - - /** - * Set the object's proxy - * - * @param \Instagram\Core\Proxy $proxy Proxy object - * @access public - */ - public function setProxy( \Instagram\Core\Proxy $proxy ) { - $this->proxy = $proxy; - } - -} \ No newline at end of file