mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
21 lines
368 B
PHP
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;
|
|
}
|