public function setReturnCodes(array $value)
    {
        foreach ($value as $returnCode) {
            $this->assertValidReturnCode($returnCode, false);
        }

        $this->returnCodes = $value;
    }
public function setReturnCodes(array $value)
    {
        foreach ($value as $returnCode) {
            $this->assertValidReturnCode($returnCode, false);
        }

        $this->returnCodes = $value;
    }
public function setReturnCodes ( array $ value ) { foreach ( $ value as $ returnCode ) { $ this -> assertValidReturnCode ( $ returnCode , false ) ; } $ this -> returnCodes = $ value ; }
Sets the return codes.

@param int[] $value

@throws \InvalidArgumentException
Sets the return codes .