public function isValid()
    {
        //validate recurringPayment values
        $checkEmpty = array(
            $this->profileStartDate,
            $this->desc,
            $this->billingPeriod,
            $this->billingFrequency,
            $this->amt,
            $this->currencyCode,
            $this->acct,
            $this->email,
        );

        if(!$this->checkEmpty($checkEmpty) || is_null($this->_address)) {
            return false;
        }

        //address fields
        $address = $this->_address;

        $test = array(
            $address->getStreet(),
            $address->getCity(),
            $address->getState(),
            $address->getCountryCode(),
            $address->getZip()
        );

        if(!$this->checkEmpty($test)) {
            return false;
        }

        return true;
    }
public function isValid()
    {
        //validate recurringPayment values
        $checkEmpty = array(
            $this->profileStartDate,
            $this->desc,
            $this->billingPeriod,
            $this->billingFrequency,
            $this->amt,
            $this->currencyCode,
            $this->acct,
            $this->email,
        );

        if(!$this->checkEmpty($checkEmpty) || is_null($this->_address)) {
            return false;
        }

        //address fields
        $address = $this->_address;

        $test = array(
            $address->getStreet(),
            $address->getCity(),
            $address->getState(),
            $address->getCountryCode(),
            $address->getZip()
        );

        if(!$this->checkEmpty($test)) {
            return false;
        }

        return true;
    }
public function isValid ( ) { //validate recurringPayment values $ checkEmpty = array ( $ this -> profileStartDate , $ this -> desc , $ this -> billingPeriod , $ this -> billingFrequency , $ this -> amt , $ this -> currencyCode , $ this -> acct , $ this -> email , ) ; if ( ! $ this -> checkEmpty ( $ checkEmpty ) || is_null ( $ this -> _address ) ) { return false ; } //address fields $ address = $ this -> _address ; $ test = array ( $ address -> getStreet ( ) , $ address -> getCity ( ) , $ address -> getState ( ) , $ address -> getCountryCode ( ) , $ address -> getZip ( ) ) ; if ( ! $ this -> checkEmpty ( $ test ) ) { return false ; } return true ; }
Validate the minimum set of required values.

@return bool
Validate the minimum set of required values .