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({"PROPERTY"})
*/
class DatabaseField
{
* @var string
public $type;
public $sql;
* @throws \InvalidArgumentException
public function __construct(array $values)
if (isset($values['type'])) {
$this->type = $values['type'];
}
if (isset($values['sql'])) {
$this->sql = $values['sql'];