Bluz\Controller\Reflection::getParams PHP Method

getParams() public method

Get all params
public getParams ( ) : array
return array
    public function getParams()
    {
        return $this->params;
    }

Usage Example

Example #1
0
 /**
  * Test reflection:
  *  - get params without description
  */
 public function testReflectionWithoutData()
 {
     $controllerFile = dirname(__FILE__) . '/../Fixtures/Controllers/ConcreteWithoutData.php';
     $reflection = new Reflection($controllerFile);
     $reflection->process();
     $this->assertEqualsArray(['a' => null, 'b' => null, 'c' => null], $reflection->getParams());
 }