for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace HDNET\Autoloader\Annotation;
/**
* @Annotation
* @Target({"METHOD"})
*/
class Plugin
{
* @var string
public $argumentName;
* @throws \InvalidArgumentException
public function __construct(array $values)
if (isset($values['value'])) {
$this->argumentName = $values['value'];
} elseif (isset($values['argumentName'])) {
$this->argumentName = $values['argumentName'];
}
public function __toString()
return (string)$this->argumentName;