@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | /** |
| 10 | 10 | * @param array $hook |
| 11 | - * @return HookInterface |
|
| 11 | + * @return DefaultHook |
|
| 12 | 12 | */ |
| 13 | 13 | private function bindHook(array $hook) |
| 14 | 14 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * |
| 50 | 50 | * @param UserInterface $user the user |
| 51 | 51 | * |
| 52 | - * @return this |
|
| 52 | + * @return UserMailHookEvent |
|
| 53 | 53 | */ |
| 54 | 54 | public function setUser(UserInterface $user) |
| 55 | 55 | { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * @param UserInterface $user |
| 28 | 28 | * @param array $metaData |
| 29 | 29 | */ |
| 30 | - public function __construct(UserInterface $user = null, $name = null, array $metaData = array()) |
|
| 30 | + public function __construct(UserInterface $user = null, $name = null, array $metaData = array()) |
|
| 31 | 31 | { |
| 32 | 32 | $this->name = $name; |
| 33 | 33 | $this->user = $user; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * @param string $apiServiceName |
| 30 | 30 | * @param ApiServiceInterface $apiService |
| 31 | - * @return this |
|
| 31 | + * @return ApiServiceProvider |
|
| 32 | 32 | */ |
| 33 | 33 | public function setApiService($apiServiceName, ApiServiceInterface $apiService) |
| 34 | 34 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Swm\Bundle\MailHookBundle\ApiService\ApiServiceInterface; |
| 6 | 6 | use Symfony\Component\DependencyInjection\Exception\LogicException; |
| 7 | -use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; |
|
| 8 | 7 | |
| 9 | 8 | class ApiServiceProvider implements ProviderInterface |
| 10 | 9 | { |
@@ -3,4 +3,4 @@ |
||
| 3 | 3 | $runner->addTestsFromDirectory(__DIR__.'/tests/units'); |
| 4 | 4 | |
| 5 | 5 | $script->noCodeCoverageForNamespaces('mageekguy', 'Symfony'); |
| 6 | -$script->bootstrapFile(__DIR__.DIRECTORY_SEPARATOR . 'tests' . DIRECTORY_SEPARATOR . 'bootstrap.php'); |
|
| 7 | 6 | \ No newline at end of file |
| 7 | +$script->bootstrapFile(__DIR__.DIRECTORY_SEPARATOR.'tests'.DIRECTORY_SEPARATOR.'bootstrap.php'); |
|
| 8 | 8 | \ No newline at end of file |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Swm\Bundle\MailHookBundle\Service; |
| 4 | 4 | |
| 5 | -use Swm\Bundle\MailHookBundle\ApiService\ApiServiceInterface; |
|
| 6 | -use Swm\Bundle\MailHookBundle\Model as ApiServiceModel; |
|
| 7 | 5 | use Swm\Bundle\MailHookBundle\Provider\ProviderInterface; |
| 8 | 6 | use Symfony\Component\HttpFoundation\Request; |
| 9 | 7 | use Symfony\Component\HttpFoundation\RequestStack; |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * |
| 50 | 50 | * @param string $email the email |
| 51 | 51 | * |
| 52 | - * @return this |
|
| 52 | + * @return MailHookEvent |
|
| 53 | 53 | */ |
| 54 | 54 | public function setEmail($email) |
| 55 | 55 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * |
| 74 | 74 | * @param string $name the name |
| 75 | 75 | * |
| 76 | - * @return this |
|
| 76 | + * @return MailHookEvent |
|
| 77 | 77 | */ |
| 78 | 78 | public function setName($name) |
| 79 | 79 | { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * |
| 98 | 98 | * @param array $metaData the meta data |
| 99 | 99 | * |
| 100 | - * @return this |
|
| 100 | + * @return MailHookEvent |
|
| 101 | 101 | */ |
| 102 | 102 | public function setMetaData(array $metaData = array()) |
| 103 | 103 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Swm\Bundle\MailHookBundle\Event; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\EventDispatcher\Event; |
| 6 | -use Symfony\Component\Security\Core\User\UserInterface; |
|
| 7 | 6 | |
| 8 | 7 | class MailHookEvent extends Event implements HookEventInterface |
| 9 | 8 | { |