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