Cascade\Config\Loader\ClassLoader\Resolver\ConstructorResolver::getConstructorArgs PHP Method

getConstructorArgs() public method

Returns the contructor args as an associative array
public getConstructorArgs ( ) : array
return array Contructor args
    public function getConstructorArgs()
    {
        return $this->constructorArgs;
    }

Usage Example

 /**
  * Test that constructor args were pulled properly
  */
 public function testInitConstructorArgs()
 {
     $expectedConstructorArgs = array();
     foreach ($this->getConstructorArgs() as $param) {
         $expectedConstructorArgs[$param->getName()] = $param;
     }
     $this->assertEquals($expectedConstructorArgs, $this->resolver->getConstructorArgs());
 }
All Usage Examples Of Cascade\Config\Loader\ClassLoader\Resolver\ConstructorResolver::getConstructorArgs