Code Duplication    Length = 8-9 lines in 2 locations

src/Resource/CustomerCreditCard.php 1 location

@@ 37-45 (lines=9) @@
34
    /**
35
     * Initialize a new instance.
36
     */
37
    protected function initialize()
38
    {
39
        $this->data = new stdClass();
40
        $this->data->method = self::METHOD_CREDIT_CARD;
41
        $this->data->creditCard = new stdClass();
42
        $this->data->creditCard->holder = new stdClass();
43
        $this->data->creditCard->holder->taxDocument = new stdClass();
44
        $this->data->creditCard->holder->phone = new stdClass();
45
    }
46
47
    /**
48
     * Mount information of a determined object.

src/Resource/Transfers.php 1 location

@@ 33-40 (lines=8) @@
30
    /**
31
     * Initializes new instances.
32
     */
33
    protected function initialize()
34
    {
35
        $this->data = new stdClass();
36
        $this->data->transferInstrument = new stdClass();
37
        $this->data->transferInstrument->bankAccount = new stdClass();
38
        $this->data->transferInstrument->bankAccount->holder = new stdClass();
39
        $this->data->transferInstrument->bankAccount->holder->taxDocument = new stdClass();
40
    }
41
42
    /**
43
     * @param stdClass $response