name = $data['value']; unset($data['value']); } foreach ($data as $key => $value) { if (!property_exists(self::class, $key)) { throw new \InvalidArgumentException(sprintf('Unknown property "%s" on annotation "%s".', $key, self::class)); } $this->{$key} = $value; } } }