protected function check($value, $method) { if ($this->analyzer->isObject($value) === false) { throw new exceptions\logic('Argument of ' . __CLASS__ . '::' . $method . '() must be a class instance'); } return $this; }