| @@ -45,11 +45,11 @@ | ||
| 45 | 45 | * | 
| 46 | 46 | * @param null|string|ViewModel|array $bodyOrConfig | 
| 47 | 47 | * @param null|string $subject | 
| 48 | - * @param null|array $to | |
| 48 | + * @param string[] $to | |
| 49 | 49 | * @param null|string|array $from | 
| 50 | - * @param null|array $cc | |
| 51 | - * @param null|array $bcc | |
| 52 | - * @param null|array $attachments | |
| 50 | + * @param string[] $cc | |
| 51 | + * @param string[] $bcc | |
| 52 | + * @param string[] $attachments | |
| 53 | 53 | * @return MailServiceInterface|ResultInterface | 
| 54 | 54 | */ | 
| 55 | 55 | public function __invoke( | 
| @@ -356,7 +356,7 @@ discard block | ||
| 356 | 356 | /** | 
| 357 | 357 | * Inject an EventManager instance | 
| 358 | 358 | * @param EventManagerInterface $events | 
| 359 | - * @return $this|void | |
| 359 | + * @return MailService | |
| 360 | 360 | */ | 
| 361 | 361 | public function setEventManager(EventManagerInterface $events) | 
| 362 | 362 |      { | 
| @@ -385,7 +385,7 @@ discard block | ||
| 385 | 385 | * Attaches a new MailListenerInterface | 
| 386 | 386 | * @param MailListenerInterface $mailListener | 
| 387 | 387 | * @param int $priority | 
| 388 | - * @return mixed|void | |
| 388 | + * @return MailService | |
| 389 | 389 | */ | 
| 390 | 390 | public function attachMailListener(MailListenerInterface $mailListener, $priority = 1) | 
| 391 | 391 |      { | 
| @@ -4,7 +4,6 @@ | ||
| 4 | 4 | use AcMailer\Event\MailEvent; | 
| 5 | 5 | use AcMailer\Options\MailOptions; | 
| 6 | 6 | use AcMailer\Service\Factory\MailServiceAbstractFactory; | 
| 7 | -use AcMailer\Service\Factory\MailServiceFactory; | |
| 8 | 7 | use AcMailerTest\Event\MailListenerMock; | 
| 9 | 8 | use AcMailerTest\ServiceManager\ServiceManagerMock; | 
| 10 | 9 | use Zend\EventManager\EventManagerAwareInterface; | 
| @@ -24,7 +24,7 @@ | ||
| 24 | 24 | * @param ContainerInterface $container | 
| 25 | 25 | * @param string $requestedName | 
| 26 | 26 | * @param null|array $options | 
| 27 | - * @return object | |
| 27 | + * @return MailOptions | |
| 28 | 28 | * @throws ServiceNotFoundException if unable to resolve the service. | 
| 29 | 29 | * @throws ServiceNotCreatedException if an exception is raised when | 
| 30 | 30 | * creating a service. | 
| @@ -41,7 +41,7 @@ discard block | ||
| 41 | 41 | * @param ContainerInterface $container | 
| 42 | 42 | * @param string $requestedName | 
| 43 | 43 | * @param null|array $options | 
| 44 | - * @return object | |
| 44 | + * @return MailService | |
| 45 | 45 | * @throws ServiceNotFoundException if unable to resolve the service. | 
| 46 | 46 | * @throws ServiceNotCreatedException if an exception is raised when | 
| 47 | 47 | * creating a service. | 
| @@ -251,7 +251,7 @@ discard block | ||
| 251 | 251 | /** | 
| 252 | 252 | * Returns a specific configuration defined by provided key | 
| 253 | 253 | * @param ContainerInterface $container | 
| 254 | - * @param $configKey | |
| 254 | + * @param string $configKey | |
| 255 | 255 | * @return array | 
| 256 | 256 | */ | 
| 257 | 257 | protected function getSpecificConfig(ContainerInterface $container, $configKey) |