Symfony\Component\DependencyInjection\Definition::getArguments PHP Method

getArguments() public method

Gets the arguments to pass to the service constructor/factory method.
public getArguments ( ) : array
return array The array of arguments
    public function getArguments()
    {
        return $this->arguments;
    }

Usage Example

Example #1
0
 /**
  * @covers Symfony\Component\DependencyInjection\Definition::__construct
  */
 public function testConstructor()
 {
     $def = new Definition('stdClass');
     $this->assertEquals('stdClass', $def->getClass(), '__construct() takes the class name as its first argument');
     $def = new Definition('stdClass', array('foo'));
     $this->assertEquals(array('foo'), $def->getArguments(), '__construct() takes an optional array of arguments as its second argument');
 }
All Usage Examples Of Symfony\Component\DependencyInjection\Definition::getArguments