/** * @param bool $asArray * @return array|\idarex\pingppyii2\CodeAutoCompletion\Charge */ public function getCharge($asArray = false) { if ($asArray) { return $this->_charge->__toArray(true); } else { return $this->_charge->__toStdObject(); } }