rector/packages/PhpAttribute/Contract/AnnotationToAttributeMapperInterface.php
2022-06-07 08:22:29 +00:00

21 lines
352 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) : Expr;
}