PHP Classes

File: facade.php

Recommend this page to a friend!
  Classes of Malik Naik  >  PHP Design Patterns Repository  >  facade.php  >  Download  
File: facade.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Design Patterns Repository
Implementation of common design patterns in PHP
Author: By
Last change:
Date: 8 months ago
Size: 349 bytes


Class file image Download

require_once 'vendor/autoload.php';


// Initialize the facade.
$facade = new Facade;

// Print the results of the facade operations.
print $facade->operation();

// Outputs:
// Facade initializes the subsystems.
// Subsytem1: Performing operations on subsystem.
// Subsytem2: Finishing up the operations.

For more information send a message to info at phpclasses dot org.