Overview

Namespaces

  • SpanishGuestReportGenerator
    • Util

Classes

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

Traits

  • FormatterTrait
  • SanitizerTrait

Exceptions

  • FactoryException
  • GuestReportException
  • Overview
  • Namespace
  • Class

      Class AbstractFactory

      Abstract Factory

      Direct known subclasses

      SpanishGuestReportGenerator\GuestFactory, SpanishGuestReportGenerator\HotelFactory
      Abstract
      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 AbstractFactory.php
      Methods summary
      final public array
      # buildMultiple( array $collection )

      Returns a collection of instances given an array with its data

      Returns a collection of instances given an array with its data

      Parameters

      $collection
      Data for the objects to be built

      Returns

      array
      Collection of instances of the given class
      final public object
      # build( array $args = [] )

      Returns a new instance of a given class name and arguments

      Returns a new instance of a given class name and arguments

      Parameters

      $args
      Arguments for the constructor

      Returns

      object
      Instance of the given class
      Properties summary
      protected string $className

      Name of the class to be built

      Name of the class to be built

      #
      protected array $argsOrder

      Sorted list of constructor arguments for the class to be built

      Sorted list of constructor arguments for the class to be built

      #
      API documentation generated by ApiGen