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
 

Contents

Class file image Download
<?php

require_once 'vendor/autoload.php';

use
DesignPattern\Facade\Facade;

// 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.