-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from rusan/right_model_names
Right names for models
- Loading branch information
Showing
3 changed files
with
64 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace InstagramScraper\Model; | ||
|
||
/** | ||
* Class UserStories | ||
* @package InstagramScraper\Model | ||
*/ | ||
class UserStories extends AbstractModel | ||
{ | ||
/** @var Account */ | ||
protected $owner; | ||
|
||
/** @var Story[] */ | ||
protected $stories; | ||
|
||
public function setOwner($owner) | ||
{ | ||
$this->owner = $owner; | ||
} | ||
|
||
public function getOwner() | ||
{ | ||
return $this->owner; | ||
} | ||
|
||
public function addStory($story) | ||
{ | ||
$this->stories[] = $story; | ||
} | ||
|
||
public function setStories($stories) | ||
{ | ||
$this->stories = $stories; | ||
} | ||
|
||
public function getStories() | ||
{ | ||
return $this->stories; | ||
} | ||
} |