public function init($arr = null)
 {
     if ($arr != null) {
         parent::init($arr);
         foreach ($arr as $arry) {
             if (is_array($arry["children"]) && $arry["children"] != null) {
                 if ($arry["name"] == 'paymenttransactiondetails') {
                     $this->PaymentTransactionDetails = new PaymentTransactionType();
                     $this->PaymentTransactionDetails->init($arry["children"]);
                 }
             }
             if (is_array($arry["children"]) && $arry["children"] != null) {
                 if ($arry["name"] == 'threedsecuredetails') {
                     $this->ThreeDSecureDetails = new ThreeDSecureInfoType();
                     $this->ThreeDSecureDetails->init($arry["children"]);
                 }
             }
         }
     }
 }
 public function equals(PaymentTransactionType $obj)
 {
     return $this->getType() == $obj->getType();
 }