for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Recca0120\Repository;
class HigherOrderTapProxy
{
/**
* The target being tapped.
*
* @var mixed
*/
public $target;
* Create a new tap proxy instance.
* @param mixed $target
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($target)
$this->target = $target;
}
* Dynamically pass method calls to the target.
* @param string $method
* @param array $parameters
* @return mixed
public function __call($method, $parameters)
call_user_func_array([$this->target, $method], $parameters);
return $this->target;
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.