public function setCardHoldersName($name)
    {
        if(preg_match('/[^A-Za-z\s\'-\.]/', $name))
        {
            throw new ErrorException('Card holder name has invalid chracters.');
        }
        elseif(strlen($name) > 50)
        {
            throw new ErrorException('Card holder name longer than fifty (50) characters');
        }

        $this->cardHoldersName = $name;

        return $this;
    }
public function setCardHoldersName($name)
    {
        if(preg_match('/[^A-Za-z\s\'-\.]/', $name))
        {
            throw new ErrorException('Card holder name has invalid chracters.');
        }
        elseif(strlen($name) > 50)
        {
            throw new ErrorException('Card holder name longer than fifty (50) characters');
        }

        $this->cardHoldersName = $name;

        return $this;
    }
public function setCardHoldersName ( $ name ) { if ( preg_match ( '/[^A-Za-z\s\'-\.]/' , $ name ) ) { throw new ErrorException ( 'Card holder name has invalid chracters.' ) ; } elseif ( strlen ( $ name ) > 50 ) { throw new ErrorException ( 'Card holder name longer than fifty (50) characters' ) ; } $ this -> cardHoldersName = $ name ; return $ this ; }
Sets the card holder's name.

@param $name string
@return eway
@throws ErrorException
Sets the card holder s name .