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: 2 years 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.