File "Comment.php"
Full Path: /home/vantageo/public_html/cache/cache/cache/.wp-cli/wp-content/plugins/revslider/includes/InstagramScraper/Model/Comment.php
File size: 1.31 KB
MIME-type: text/x-php
Charset: utf-8
<?php
namespace InstagramScraper\Model;
class Comment extends AbstractModel
{
/**
* @var
*/
protected $id;
/**
* @var
*/
protected $text;
/**
* @var
*/
protected $createdAt;
/**
* @var Account
*/
protected $owner;
/**
* @var bool
*/
protected $isLoaded = false;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getText()
{
return $this->text;
}
/**
* @return mixed
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* @return Account
*/
public function getOwner()
{
return $this->owner;
}
/**
* @param $value
* @param $prop
*/
protected function initPropertiesCustom($value, $prop)
{
switch ($prop) {
case 'id':
$this->id = $value;
break;
case 'created_at':
$this->createdAt = $value;
break;
case 'text':
$this->text = $value;
break;
case 'owner':
$this->owner = Account::create($value);
break;
}
}
}