Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 1618071

Browse files
committed
Added {@inheritdoc} and made class final as per @Ocramius suggestions
1 parent 5d70e9f commit 1618071

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

src/AbstractFactory/ConfigAbstractFactory.php

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111

1212
use Zend\ServiceManager\Factory\AbstractFactoryInterface;
1313

14-
class ConfigAbstractFactory implements AbstractFactoryInterface
14+
final class ConfigAbstractFactory implements AbstractFactoryInterface
1515
{
1616

1717
/**
18-
* Can the factory create an instance for the service?
18+
* Factory can create the service if there is a key for it in the config
1919
*
20-
* @param \Interop\Container\ContainerInterface $container
21-
* @param string $requestedName
22-
* @return bool
20+
* {@inheritdoc}
2321
*/
2422
public function canCreate(\Interop\Container\ContainerInterface $container, $requestedName)
2523
{
@@ -33,16 +31,7 @@ public function canCreate(\Interop\Container\ContainerInterface $container, $req
3331
}
3432

3533
/**
36-
* Create an object
37-
*
38-
* @param \Interop\Container\ContainerInterface $container
39-
* @param string $requestedName
40-
* @param null|array $options
41-
* @return object
42-
* @throws \Zend\ServiceManager\Exception\ServiceNotFoundException if unable to resolve the service.
43-
* @throws \Zend\ServiceManager\Exception\ServiceNotCreatedException if an exception is raised when
44-
* creating a service.
45-
* @throws \Interop\Container\Exception\ContainerException if any other error occurs
34+
* {@inheritDoc}
4635
*/
4736
public function __invoke(\Interop\Container\ContainerInterface $container, $requestedName, array $options = null)
4837
{

0 commit comments

Comments
 (0)