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({"CLASS", "METHOD"})
*/
class Hook
{
* @var array
public $locations = [];
* @throws \InvalidArgumentException
public function __construct(array $values)
if (\is_string($values['value'])) {
$this->locations[] = $values['value'];
} elseif (\is_array($values['value'])) {
$this->locations = $values['value'];
}