protected function assertExpression($expression) { if (!$expression instanceof $this->name) { throw new InvalidArgumentException('Passed $expression must be instance of ' . $this->name); } }