public static function createCapture() { $capture = new Capture(); $capture->setAuthorization_id(self::$authorization_id); $capture->setCreate_time(self::$create_time); $capture->setDescription(self::$description); $capture->setId(self::$id); $capture->setParent_payment(self::$parent_payment); $capture->setState(self::$state); return $capture; }