Overview

Namespaces

  • SpanishGuestReportGenerator
    • Util

Classes

  • AbstractFactory
  • Guest
  • GuestFactory
  • GuestReport
  • Hotel
  • HotelFactory

Traits

  • FormatterTrait
  • SanitizerTrait

Exceptions

  • FactoryException
  • GuestReportException
  • Overview
  • Namespace
  • Class

      Class Guest

      Guest

      SpanishGuestReportGenerator\Guest uses SpanishGuestReportGenerator\FormatterTrait, SpanishGuestReportGenerator\SanitizerTrait
      Namespace: SpanishGuestReportGenerator
      Package: Spanish
      Copyright: 2021 Javier Zapata javierzapata82@gmail.com
      License: The MIT License
      Author: Javier Zapata javierzapata82@gmail.com
      Link: https://github.com/bahiazul/spanish-guest-report-generator
      Located at Guest.php
      Methods summary
      public
      # __construct( boolean $isSpanish = false, string $idNumber = '', string $docType = '', string $docIssueDate = '', string $lastName1 = '', string $lastName2 = '', string $firstName = '', string $gender = '', string $birthDate = '', string $countryName = '', string $arrivalDate = '' )

      Create a new Guest

      Create a new Guest

      Parameters

      $isSpanish
      Indicates if the guest is a spanish resident
      $idNumber
      ID number that appears in the document
      $docType
      Letter identifying the type
      $docIssueDate
      Expiration date of the document
      $lastName1
      First last name
      $lastName2
      Second last name (only required for spaniards)
      $firstName
      First name
      $gender
      Letter identifying the gender
      $birthDate
      Date of birth
      $countryName
      Name of the country
      $arrivalDate
      Date of arrival
      public SpanishGuestReportGenerator\Guest
      # setIsSpanish( boolean $isSpanish )

      Sets wether or not the guest is a Spanish citizen

      Sets wether or not the guest is a Spanish citizen

      Parameters

      $isSpanish

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setIDNumber( string $idNumber )

      Sets the ID number

      Sets the ID number

      Parameters

      $idNumber
      ID Number

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setDocType( string $docType )

      Sets the document type

      Sets the document type

      Parameters

      $docType
      Letter identifying the type

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setDocIssueDate( string $date )

      Sets the document issue date

      Sets the document issue date

      Parameters

      $date
      The date

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setLastName1( string $lastName1 )

      Sets the first last name

      Sets the first last name

      Parameters

      $lastName1
      First last name

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setLastName2( string $lastName2 )

      Sets the second last name (only required for spanish citizens)

      Sets the second last name (only required for spanish citizens)

      Parameters

      $lastName2
      Second last name

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setFirstName( string $firstName )

      Sets the first name

      Sets the first name

      Parameters

      $firstName
      First name

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setGender( string $gender )

      Sets the gender

      Sets the gender

      Parameters

      $gender
      Letter identifying the gender

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setBirthDate( string $date )

      Sets the birth date

      Sets the birth date

      Parameters

      $date
      Birth date

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setCountryName( string $countryName )

      Sets the country name

      Sets the country name

      Parameters

      $countryName
      Country name

      Returns

      SpanishGuestReportGenerator\Guest
      public SpanishGuestReportGenerator\Guest
      # setArrivalDate( string $date )

      Sets the arrival date

      Sets the arrival date

      Parameters

      $date
      Arrival date

      Returns

      SpanishGuestReportGenerator\Guest
      public array
      # getCols( )

      Returns the data for this object

      Returns the data for this object

      Returns

      array
      Constants summary
      integer ROW_TYPE

      First digit for the Guest info line

      First digit for the Guest info line

      # 2
      API documentation generated by ApiGen