-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
13 changed files
with
614 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,6 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"autoload-dev": { | ||
"classmap": [ | ||
"tests/TestCase.php" | ||
], | ||
"files": [ | ||
"tests/helpers.php" | ||
] | ||
}, | ||
"require": { | ||
"php": ">=7.1.0" | ||
}, | ||
|
@@ -30,5 +22,10 @@ | |
"Skybluesofa\\Followers\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Skybluesofa\\Followers\\Tests\\": "tests/" | ||
} | ||
}, | ||
"minimum-stability": "stable" | ||
} |
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,26 @@ | ||
<?php | ||
namespace Skybluesofa\Followers\Events; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class FollowRequest | ||
{ | ||
use SerializesModels; | ||
|
||
public $recipient; | ||
public $sender; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param Model $sender | ||
* @param Model $recipient | ||
* @return void | ||
*/ | ||
public function __construct(Model $recipient, Model $sender) | ||
{ | ||
$this->recipient = $recipient; | ||
$this->sender = $sender; | ||
} | ||
} |
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,26 @@ | ||
<?php | ||
namespace Skybluesofa\Followers\Events; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class FollowRequestAccepted | ||
{ | ||
use SerializesModels; | ||
|
||
public $recipient; | ||
public $sender; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param Model $sender | ||
* @param Model $recipient | ||
* @return void | ||
*/ | ||
public function __construct(Model $recipient, Model $sender) | ||
{ | ||
$this->recipient = $recipient; | ||
$this->sender = $sender; | ||
} | ||
} |
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,26 @@ | ||
<?php | ||
namespace Skybluesofa\Followers\Events; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class FollowRequestDenied | ||
{ | ||
use SerializesModels; | ||
|
||
public $recipient; | ||
public $sender; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param Model $sender | ||
* @param Model $recipient | ||
* @return void | ||
*/ | ||
public function __construct(Model $recipient, Model $sender) | ||
{ | ||
$this->recipient = $recipient; | ||
$this->sender = $sender; | ||
} | ||
} |
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,26 @@ | ||
<?php | ||
namespace Skybluesofa\Followers\Events; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class FollowingBlocked | ||
{ | ||
use SerializesModels; | ||
|
||
public $recipient; | ||
public $sender; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param Model $sender | ||
* @param Model $recipient | ||
* @return void | ||
*/ | ||
public function __construct(Model $recipient, Model $sender) | ||
{ | ||
$this->recipient = $recipient; | ||
$this->sender = $sender; | ||
} | ||
} |
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,26 @@ | ||
<?php | ||
namespace Skybluesofa\Followers\Events; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class FollowingUnblocked | ||
{ | ||
use SerializesModels; | ||
|
||
public $recipient; | ||
public $sender; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param Model $sender | ||
* @param Model $recipient | ||
* @return void | ||
*/ | ||
public function __construct(Model $recipient, Model $sender) | ||
{ | ||
$this->recipient = $recipient; | ||
$this->sender = $sender; | ||
} | ||
} |
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,26 @@ | ||
<?php | ||
namespace Skybluesofa\Followers\Events; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class Unfollow | ||
{ | ||
use SerializesModels; | ||
|
||
public $recipient; | ||
public $sender; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param Model $sender | ||
* @param Model $recipient | ||
* @return void | ||
*/ | ||
public function __construct(Model $recipient, Model $sender) | ||
{ | ||
$this->recipient = $recipient; | ||
$this->sender = $sender; | ||
} | ||
} |
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
Oops, something went wrong.