* The PHP interface that is implemented by the Bean.
16
*
17
* @var string
18
*/
19
private $name;
20
21
/**
22
* @param array<string, mixed> $values
23
*
24
* @throws \BadMethodCallException
25
*/
26
public function __construct(array $values)
27
{
28
if (!isset($values['value']) && !isset($values['name'])) {
29
throw new \BadMethodCallException('The @AddInterface annotation must be passed an interface to implement. For instance: \'@AddInterface("Foo\\BarInterface")\'');