getReturn() public method

public getReturn ( ) : string
return string
Beispiel #1
0
 public function testSimple()
 {
     $annotation = new Returns(['value' => 'test']);
     $this->assertEquals('test', $annotation->getReturn());
 }
Beispiel #2
0
 /**
  * @param Method $method
  * @param Returns $annotation
  * @return null
  */
 public function handle(Method $method, $annotation)
 {
     $method->setReturn($annotation->getReturn());
 }