Neos\Flow\Tests\Functional\Aop\Fixtures\TargetClass02::publicTargetMethod PHP Метод

publicTargetMethod() публичный Метод

public publicTargetMethod ( mixed $foo ) : mixed
$foo mixed
Результат mixed
    public function publicTargetMethod($foo)
    {
        return $this->protectedTargetMethod($foo);
    }

Usage Example

 /**
  * Checks if the target class is protected, the advice is woven in anyway.
  * The necessary advice is defined in BaseFunctionalityAspect.
  *
  * Test for bugfix #2581
  *
  * @test
  */
 public function protectedMethodsCanAlsoBeAdviced()
 {
     $targetClass = new Fixtures\TargetClass02();
     $result = $targetClass->publicTargetMethod('foo');
     $this->assertEquals('foo bar', $result);
 }