for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BEAR\Resource\Annotation;
use Attribute;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
/**
* @Annotation
* @Target("METHOD")
* @NamedArgumentConstructor
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
final class Embed
{
* Relation
*
* @var string
public $rel;
* Embed resource uri
public $src;
/** @param array{rel?: string, src?: string} $values */
public function __construct(array $values = [], string $rel = '', string $src = '')
$this->rel = $values['rel'] ?? $rel;
$this->src = $values['src'] ?? $src;
}