[DependencyInjection] fix phpDoc

This commit is contained in:
JhonnyL 2016-04-11 16:45:49 +02:00
parent 302e1928b8
commit 46ea9cc453
22 changed files with 10 additions and 72 deletions

View File

@ -17,8 +17,6 @@ class Alias
private $public; private $public;
/** /**
* Constructor.
*
* @param string $id Alias identifier * @param string $id Alias identifier
* @param bool $public If this alias is public * @param bool $public If this alias is public
*/ */

View File

@ -34,8 +34,6 @@ class AnalyzeServiceReferencesPass implements RepeatablePassInterface
private $onlyConstructorArguments; private $onlyConstructorArguments;
/** /**
* Constructor.
*
* @param bool $onlyConstructorArguments Sets this Service Reference pass to ignore method calls * @param bool $onlyConstructorArguments Sets this Service Reference pass to ignore method calls
*/ */
public function __construct($onlyConstructorArguments = false) public function __construct($onlyConstructorArguments = false)

View File

@ -25,9 +25,6 @@ class Compiler
private $loggingFormatter; private $loggingFormatter;
private $serviceReferenceGraph; private $serviceReferenceGraph;
/**
* Constructor.
*/
public function __construct() public function __construct()
{ {
$this->passConfig = new PassConfig(); $this->passConfig = new PassConfig();

View File

@ -35,9 +35,6 @@ class PassConfig
private $optimizationPasses; private $optimizationPasses;
private $removingPasses; private $removingPasses;
/**
* Constructor.
*/
public function __construct() public function __construct()
{ {
$this->mergePass = new MergeExtensionConfigurationPass(); $this->mergePass = new MergeExtensionConfigurationPass();

View File

@ -32,8 +32,6 @@ class RepeatedPass implements CompilerPassInterface
private $passes; private $passes;
/** /**
* Constructor.
*
* @param RepeatablePassInterface[] $passes An array of RepeatablePassInterface objects * @param RepeatablePassInterface[] $passes An array of RepeatablePassInterface objects
* *
* @throws InvalidArgumentException when the passes don't implement RepeatablePassInterface * @throws InvalidArgumentException when the passes don't implement RepeatablePassInterface

View File

@ -28,9 +28,6 @@ class ServiceReferenceGraph
*/ */
private $nodes; private $nodes;
/**
* Constructor.
*/
public function __construct() public function __construct()
{ {
$this->nodes = array(); $this->nodes = array();

View File

@ -25,8 +25,6 @@ class ServiceReferenceGraphEdge
private $value; private $value;
/** /**
* Constructor.
*
* @param ServiceReferenceGraphNode $sourceNode * @param ServiceReferenceGraphNode $sourceNode
* @param ServiceReferenceGraphNode $destNode * @param ServiceReferenceGraphNode $destNode
* @param string $value * @param string $value

View File

@ -29,8 +29,6 @@ class ServiceReferenceGraphNode
private $value; private $value;
/** /**
* Constructor.
*
* @param string $id The node identifier * @param string $id The node identifier
* @param mixed $value The node value * @param mixed $value The node value
*/ */

View File

@ -77,8 +77,6 @@ class Container implements IntrospectableContainerInterface
private $underscoreMap = array('_' => '', '.' => '_', '\\' => '_'); private $underscoreMap = array('_' => '', '.' => '_', '\\' => '_');
/** /**
* Constructor.
*
* @param ParameterBagInterface $parameterBag A ParameterBagInterface instance * @param ParameterBagInterface $parameterBag A ParameterBagInterface instance
*/ */
public function __construct(ParameterBagInterface $parameterBag = null) public function __construct(ParameterBagInterface $parameterBag = null)

View File

@ -24,9 +24,7 @@ abstract class ContainerAware implements ContainerAwareInterface
protected $container; protected $container;
/** /**
* Sets the container. * {@inheritdoc}
*
* @param ContainerInterface|null $container A ContainerInterface instance or null
*/ */
public function setContainer(ContainerInterface $container = null) public function setContainer(ContainerInterface $container = null)
{ {

View File

@ -40,8 +40,6 @@ class Definition
protected $arguments; protected $arguments;
/** /**
* Constructor.
*
* @param string $class The service class * @param string $class The service class
* @param array $arguments An array of arguments to pass to the service constructor * @param array $arguments An array of arguments to pass to the service constructor
*/ */

View File

@ -25,8 +25,6 @@ class DefinitionDecorator extends Definition
private $changes; private $changes;
/** /**
* Constructor.
*
* @param string $parent The id of Definition instance to decorate. * @param string $parent The id of Definition instance to decorate.
*/ */
public function __construct($parent) public function __construct($parent)

View File

@ -23,8 +23,6 @@ abstract class Dumper implements DumperInterface
protected $container; protected $container;
/** /**
* Constructor.
*
* @param ContainerBuilder $container The service container to dump * @param ContainerBuilder $container The service container to dump
*/ */
public function __construct(ContainerBuilder $container) public function __construct(ContainerBuilder $container)

View File

@ -24,8 +24,6 @@ class ParameterNotFoundException extends InvalidArgumentException
private $alternatives; private $alternatives;
/** /**
* Constructor.
*
* @param string $key The requested parameter key * @param string $key The requested parameter key
* @param string $sourceId The service id that references the non-existent parameter * @param string $sourceId The service id that references the non-existent parameter
* @param string $sourceKey The parameter key that references the non-existent parameter * @param string $sourceKey The parameter key that references the non-existent parameter

View File

@ -27,9 +27,7 @@ use Symfony\Component\Config\Definition\ConfigurationInterface;
abstract class Extension implements ExtensionInterface, ConfigurationExtensionInterface abstract class Extension implements ExtensionInterface, ConfigurationExtensionInterface
{ {
/** /**
* Returns the base path for the XSD files. * {@inheritdoc}
*
* @return string The XSD base path
*/ */
public function getXsdValidationBasePath() public function getXsdValidationBasePath()
{ {
@ -37,9 +35,7 @@ abstract class Extension implements ExtensionInterface, ConfigurationExtensionIn
} }
/** /**
* Returns the namespace to be used for this extension (XML namespace). * {@inheritdoc}
*
* @return string The XML namespace
*/ */
public function getNamespace() public function getNamespace()
{ {

View File

@ -26,8 +26,6 @@ class ClosureLoader extends Loader
private $container; private $container;
/** /**
* Constructor.
*
* @param ContainerBuilder $container A ContainerBuilder instance * @param ContainerBuilder $container A ContainerBuilder instance
*/ */
public function __construct(ContainerBuilder $container) public function __construct(ContainerBuilder $container)

View File

@ -25,8 +25,6 @@ abstract class FileLoader extends BaseFileLoader
protected $container; protected $container;
/** /**
* Constructor.
*
* @param ContainerBuilder $container A ContainerBuilder instance * @param ContainerBuilder $container A ContainerBuilder instance
* @param FileLocatorInterface $locator A FileLocator instance * @param FileLocatorInterface $locator A FileLocator instance
*/ */

View File

@ -21,8 +21,6 @@ class Parameter
private $id; private $id;
/** /**
* Constructor.
*
* @param string $id The parameter key * @param string $id The parameter key
*/ */
public function __construct($id) public function __construct($id)
@ -31,8 +29,6 @@ class Parameter
} }
/** /**
* __toString.
*
* @return string The parameter key * @return string The parameter key
*/ */
public function __toString() public function __toString()

View File

@ -21,8 +21,6 @@ use Symfony\Component\DependencyInjection\Exception\LogicException;
class FrozenParameterBag extends ParameterBag class FrozenParameterBag extends ParameterBag
{ {
/** /**
* Constructor.
*
* For performance reasons, the constructor assumes that * For performance reasons, the constructor assumes that
* all keys are already lowercased. * all keys are already lowercased.
* *

View File

@ -26,8 +26,6 @@ class ParameterBag implements ParameterBagInterface
protected $resolved; protected $resolved;
/** /**
* Constructor.
*
* @param array $parameters An array of parameters * @param array $parameters An array of parameters
*/ */
public function __construct(array $parameters = array()) public function __construct(array $parameters = array())
@ -58,9 +56,7 @@ class ParameterBag implements ParameterBagInterface
} }
/** /**
* Gets the service container parameters. * {@inheritdoc}
*
* @return array An array of parameters
*/ */
public function all() public function all()
{ {
@ -68,13 +64,7 @@ class ParameterBag implements ParameterBagInterface
} }
/** /**
* Gets a service container parameter. * {@inheritdoc}
*
* @param string $name The parameter name
*
* @return mixed The parameter value
*
* @throws ParameterNotFoundException if the parameter is not defined
*/ */
public function get($name) public function get($name)
{ {
@ -111,11 +101,7 @@ class ParameterBag implements ParameterBagInterface
} }
/** /**
* Returns true if a parameter name is defined. * {@inheritdoc}
*
* @param string $name The parameter name
*
* @return bool true if the parameter name is defined, false otherwise
*/ */
public function has($name) public function has($name)
{ {
@ -133,7 +119,7 @@ class ParameterBag implements ParameterBagInterface
} }
/** /**
* Replaces parameter placeholders (%name%) by their values for all parameters. * {@inheritdoc}
*/ */
public function resolve() public function resolve()
{ {
@ -268,6 +254,9 @@ class ParameterBag implements ParameterBagInterface
return $value; return $value;
} }
/**
* {@inheritdoc}
*/
public function unescapeValue($value) public function unescapeValue($value)
{ {
if (is_string($value)) { if (is_string($value)) {

View File

@ -23,8 +23,6 @@ class Reference
private $strict; private $strict;
/** /**
* Constructor.
*
* @param string $id The service identifier * @param string $id The service identifier
* @param int $invalidBehavior The behavior when the service does not exist * @param int $invalidBehavior The behavior when the service does not exist
* @param bool $strict Sets how this reference is validated * @param bool $strict Sets how this reference is validated
@ -39,8 +37,6 @@ class Reference
} }
/** /**
* __toString.
*
* @return string The service identifier * @return string The service identifier
*/ */
public function __toString() public function __toString()

View File

@ -29,8 +29,6 @@ class Variable
private $name; private $name;
/** /**
* Constructor.
*
* @param string $name * @param string $name
*/ */
public function __construct($name) public function __construct($name)