rector/packages/PhpAttribute/Contract/AnnotationToAttributeMapperInterface.php
Tomas Votruba 361d8f4a2f Updated Rector to commit f374b9faa834b5cceef16d99dd46e147ce753312
f374b9faa8 [PHP 8.0] Include keys in annotation to attribute transformation (#1766)
2022-02-05 10:39:52 +00:00

21 lines
368 B
PHP

<?php
declare (strict_types=1);
namespace Rector\PhpAttribute\Contract;
use PhpParser\Node\Expr;
/**
* @template T as mixed
*/
interface AnnotationToAttributeMapperInterface
{
/**
* @param mixed $value
*/
public function isCandidate($value) : bool;
/**
* @param T $value
*/
public function map($value) : \PhpParser\Node\Expr;
}