protected function _package_master_elements($envelope, $targeting, $scheduling) {
        $ret = false;

        if ($envelope instanceof \Yesmail\YesmailMasterEnvelope && $envelope->is_valid() === true) {
            $ret = new \stdClass();
            $ret->envelope = $envelope;

            if ($targeting instanceof \Yesmail\YesmailMasterTargeting && $targeting->is_valid() === true) {
                $ret->targeting = $targeting;
            }

            if ($scheduling instanceof \Yesmail\YesmailMasterScheduling && $scheduling->is_valid() === true) {
                $ret->scheduling = $scheduling;
            }
        }

        return $ret;
    }
protected function _package_master_elements($envelope, $targeting, $scheduling) {
        $ret = false;

        if ($envelope instanceof \Yesmail\YesmailMasterEnvelope && $envelope->is_valid() === true) {
            $ret = new \stdClass();
            $ret->envelope = $envelope;

            if ($targeting instanceof \Yesmail\YesmailMasterTargeting && $targeting->is_valid() === true) {
                $ret->targeting = $targeting;
            }

            if ($scheduling instanceof \Yesmail\YesmailMasterScheduling && $scheduling->is_valid() === true) {
                $ret->scheduling = $scheduling;
            }
        }

        return $ret;
    }
protected function _package_master_elements ( $ envelope , $ targeting , $ scheduling ) { $ ret = false ; if ( $ envelope instanceof \ Yesmail \ YesmailMasterEnvelope && $ envelope -> is_valid ( ) === true ) { $ ret = new \ stdClass ( ) ; $ ret -> envelope = $ envelope ; if ( $ targeting instanceof \ Yesmail \ YesmailMasterTargeting && $ targeting -> is_valid ( ) === true ) { $ ret -> targeting = $ targeting ; } if ( $ scheduling instanceof \ Yesmail \ YesmailMasterScheduling && $ scheduling -> is_valid ( ) === true ) { $ ret -> scheduling = $ scheduling ; } } return $ ret ; }
Package a Master's envelope, targeting, and scheduling for sending in a request

@param object $envelope The Master's envelope
@param mixed $targeting [optional] Optional targeting parameters for the new master
@param mixed $scheduling [optional] Optional scheduling parameters for the new master
@return mixed Either a stdClass object containing the Master's elements, or false upon failure
Package a Master s envelope targeting and scheduling for sending in a request