Overview

Namespaces

  • SpanishGuestReportGenerator
    • Util

Classes

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

Traits

  • FormatterTrait
  • SanitizerTrait

Exceptions

  • FactoryException
  • GuestReportException
  • Overview
  • Namespace
  • Class

      Class Hotel

      Hotel

      SpanishGuestReportGenerator\Hotel 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 Hotel.php
      Methods summary
      public
      # __construct( string $hotelCode = '', string $hotelName = '', DateTime|null $reportDateTime = null, array $guests = [] )

      Create a new Hotel

      Create a new Hotel

      Parameters

      $hotelCode
      Code of the Hotel
      $hotelName
      Name of the Hotel
      $reportDateTime
      Date and time of the report
      $guests
      Guests that belong to this Hotel
      public SpanishGuestReportGenerator\Hotel
      # setHotelCode( string $hotelCode )

      Sets the Hotel's code

      Sets the Hotel's code

      Parameters

      $hotelCode

      Returns

      SpanishGuestReportGenerator\Hotel
      public SpanishGuestReportGenerator\Hotel
      # setHotelName( string $hotelName )

      Sets the Hotel's name

      Sets the Hotel's name

      Parameters

      $hotelName

      Returns

      SpanishGuestReportGenerator\Hotel
      public SpanishGuestReportGenerator\Hotel
      # setReportDateTime( DateTime $reportDateTime )

      Sets the report date and time

      Sets the report date and time

      Parameters

      $reportDateTime

      Returns

      SpanishGuestReportGenerator\Hotel
      public SpanishGuestReportGenerator\Hotel
      # setGuests( array $guests )

      Set multiple Guests at once

      Set multiple Guests at once

      Parameters

      $guests

      Returns

      SpanishGuestReportGenerator\Hotel
      public array
      # getRows( )

      Return all the Guests and the Hotel info

      Return all the Guests and the Hotel info

      Returns

      array
      Constants summary
      integer ROW_TYPE

      First digit for the Hotel info line

      First digit for the Hotel info line

      # 1
      API documentation generated by ApiGen