src/icepay_api_order.php
public function setLastName($lastName) {
        if (empty($lastName))
            throw new Exception('Lastname must be set and cannot be empty.');

        $this->lastName = trim($lastName);

        return $this;
    }
public function setLastName($lastName) {
        if (empty($lastName))
            throw new Exception('Lastname must be set and cannot be empty.');

        $this->lastName = trim($lastName);

        return $this;
    }
public function setLastName ( $ lastName ) { if ( empty ( $ lastName ) ) throw new Exception ( 'Lastname must be set and cannot be empty.' ) ; $ this -> lastName = trim ( $ lastName ) ; return $ this ; }
Sets the last name

@since 1.0.0
@param string A string containing the family name
@return \Icepay_Order_Address
@throws Exception when empty
Sets the last name