/** * {@inheritdoc} */ public function asInstanceOf($class) { if ($this->source instanceof $class) { return $this->source; } return parent::asInstanceOf($class); }
/** * {@inheritdoc} */ public function count() { if (isset($this->count)) { return $this->count; } return parent::count(); }