This repository has been archived by the owner on Nov 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d9ce70
commit 70826c1
Showing
18 changed files
with
249 additions
and
248 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
8 changes: 4 additions & 4 deletions
8
src/Entities/AbstractEntity.php → src/Repositories/AbstractRepository.php
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<?php | ||
|
||
namespace Larabros\Elogram\Entities; | ||
namespace Larabros\Elogram\Repositories; | ||
|
||
use Larabros\Elogram\Http\Clients\AdapterInterface; | ||
|
||
/** | ||
* An abstract entity class. Any new endpoints should extend this class. | ||
* An abstract repository class. Any new endpoints should extend this class. | ||
* | ||
* @package Elogram | ||
* @author Hassan Khan <[email protected]> | ||
* @link https://github.com/larabros/elogram | ||
* @license MIT | ||
*/ | ||
abstract class AbstractEntity | ||
abstract class AbstractRepository | ||
{ | ||
/** | ||
* @var AdapterInterface | ||
*/ | ||
protected $client; | ||
|
||
/** | ||
* Creates a new instance of :php:class:`AbstractEntity`. | ||
* Creates a new instance of :php:class:`AbstractRepository`. | ||
* | ||
* @param AdapterInterface $client | ||
*/ | ||
|
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<?php | ||
|
||
namespace Larabros\Elogram\Entities; | ||
namespace Larabros\Elogram\Repositories; | ||
|
||
use Larabros\Elogram\Http\Response; | ||
|
||
/** | ||
* Comment | ||
* CommentsRepository | ||
* | ||
* @package Elogram | ||
* @author Hassan Khan <[email protected]> | ||
* @link https://github.com/larabros/elogram | ||
* @license MIT | ||
*/ | ||
class Comment extends AbstractEntity | ||
class CommentsRepository extends AbstractRepository | ||
{ | ||
|
||
/** | ||
|
@@ -38,7 +38,7 @@ public function get($mediaId) | |
* - The comment cannot consist of all capital letters. | ||
* | ||
* @param int $mediaId The ID of the media object | ||
* @param string $text Text to post as a comment on the media object as specified by `$mediaId` | ||
* @param string $text Text to post as a comment on the media object | ||
* | ||
* @return Response | ||
* | ||
|
6 changes: 3 additions & 3 deletions
6
src/Entities/LikeRepository.php → src/Repositories/LikesRepository.php
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<?php | ||
|
||
namespace Larabros\Elogram\Entities; | ||
namespace Larabros\Elogram\Repositories; | ||
|
||
use Larabros\Elogram\Http\Response; | ||
|
||
/** | ||
* LikeRepository class. | ||
* LikesRepository class. | ||
* | ||
* @package Elogram | ||
* @author Hassan Khan <[email protected]> | ||
* @link https://github.com/larabros/elogram | ||
* @license MIT | ||
*/ | ||
class LikeRepository extends AbstractEntity | ||
class LikesRepository extends AbstractRepository | ||
{ | ||
|
||
/** | ||
|
6 changes: 3 additions & 3 deletions
6
src/Entities/Location.php → src/Repositories/LocationsRepository.php
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<?php | ||
|
||
namespace Larabros\Elogram\Entities; | ||
namespace Larabros\Elogram\Repositories; | ||
|
||
use Larabros\Elogram\Http\Response; | ||
|
||
/** | ||
* Location | ||
* LocationsRepository | ||
* | ||
* @package Elogram | ||
* @author Hassan Khan <[email protected]> | ||
* @link https://github.com/larabros/elogram | ||
* @license MIT | ||
*/ | ||
class Location extends AbstractEntity | ||
class LocationsRepository extends AbstractRepository | ||
{ | ||
|
||
/** | ||
|
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<?php | ||
|
||
namespace Larabros\Elogram\Entities; | ||
namespace Larabros\Elogram\Repositories; | ||
|
||
use Larabros\Elogram\Http\Response; | ||
|
||
/** | ||
* Media | ||
* MediaRepository | ||
* | ||
* @package Elogram | ||
* @author Hassan Khan <[email protected]> | ||
* @link https://github.com/larabros/elogram | ||
* @license MIT | ||
*/ | ||
class Media extends AbstractEntity | ||
class MediaRepository extends AbstractRepository | ||
{ | ||
/** | ||
* Get information about a media object. | ||
|
@@ -29,7 +29,7 @@ public function get($id) | |
} | ||
|
||
/** | ||
* This method returns the same response as :php:meth:`Media::get` | ||
* This method returns the same response as :php:meth:`MediaRepository::get` | ||
* | ||
* @param string $shortcode The shortcode of the media object | ||
* | ||
|
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<?php | ||
|
||
namespace Larabros\Elogram\Entities; | ||
namespace Larabros\Elogram\Repositories; | ||
|
||
use Larabros\Elogram\Http\Response; | ||
|
||
/** | ||
* Tag | ||
* TagsRepository | ||
* | ||
* @package Elogram | ||
* @author Hassan Khan <[email protected]> | ||
* @link https://github.com/larabros/elogram | ||
* @license MIT | ||
*/ | ||
class Tag extends AbstractEntity | ||
class TagsRepository extends AbstractRepository | ||
{ | ||
/** | ||
* Get information about a tag object. | ||
|
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<?php | ||
|
||
namespace Larabros\Elogram\Entities; | ||
namespace Larabros\Elogram\Repositories; | ||
|
||
use Larabros\Elogram\Http\Response; | ||
|
||
/** | ||
* User | ||
* UsersRepository | ||
* | ||
* @package Elogram | ||
* @author Hassan Khan <[email protected]> | ||
* @link https://github.com/larabros/elogram | ||
* @license MIT | ||
*/ | ||
class User extends AbstractEntity | ||
class UsersRepository extends AbstractRepository | ||
{ | ||
/** | ||
* Get information about a user. | ||
|
Oops, something went wrong.