You are here

class InstagramComment in Instagram Block 7

InstagramComment class.

Hierarchy

Expanded class hierarchy of InstagramComment

File

./instagram_block.lib.php, line 385
Instagram classes to integrate with the Instagram API.

View source
class InstagramComment {

  /**
   * @var string $id.
   */
  protected $id;

  /**
   * @var string $text.
   */
  public $text;

  /**
   * @var InstagramUser $from.
   */
  public $from;

  /**
   * @var string $created.
   */
  public $created;

  /**
   * Constructor for the InstagramComment class.
   */
  public function __construct($comment) {
    $this->id = $comment->id;
    $this->text = $comment->text;
    $this->from = new InstagramUser($comment->from);
    $this->created = $comment->created_time;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InstagramComment::$created public property
InstagramComment::$from public property
InstagramComment::$id protected property
InstagramComment::$text public property
InstagramComment::__construct public function Constructor for the InstagramComment class.