for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace \SimpleSAML\Module\monitor;
abstract class DependencyInjectionFactory
{
/**
* @param array $vars
*
* @return Request
*/
@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($vars)
$objectVars = get_object_vars($this);
foreach ($vars as $property => $value)
if (array_key_exists($property, $objectVars)) {
$this->$property = $value;
}
return $this;
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.