/** * {@inheritdoc} */ public function isSatisfiedBy($subject) { $class = $this->getSubject(); if ($subject instanceof $class) { throw new UnexpectedTypeException($subject, $class); } return $this->expression->evaluate($subject); }