Skip to content

Commit

Permalink
Fix #20 Get Media Likes
Browse files Browse the repository at this point in the history
  • Loading branch information
eversionsystems authored Nov 17, 2017
1 parent 88f5c2d commit 6060bf9
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/InstagramScraper/Model/Like.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php

namespace InstagramScraper\Model;


class Like extends AbstractModel
{
/**
* @var
*/
protected $id;

/**
* @var Account
*/
protected $username;

/**
* @return mixed
*/
public function getId()
{
return $this->id;
}

/**
* @return mixed
*/
public function getUserName()
{
return $this->username;
}

/**
* @param $value
* @param $prop
*/
protected function initPropertiesCustom($value, $prop)
{
switch ($prop) {
case 'id':
$this->id = $value;
break;
case 'username':
$this->username = $value;
break;
}
}

}

0 comments on commit 6060bf9

Please sign in to comment.