PHP Classes

File: example/src/bar/Bar.php

Recommend this page to a friend!
  Classes of Samuel Adeshina   Plug Loader   example/src/bar/Bar.php   Download  
File: example/src/bar/Bar.php
Role: Example script
Content type: text/plain
Description: Example
Class: Plug Loader
Autoload classes based on PSR-4 recommendation
Author: By
Last change:
Date: 8 years ago
Size: 211 bytes
 

Contents

Class file image Download
<?php
   
namespace Example\Bar;

    use
Example\Foo\Foo as Foo;
    use
Example\Faz\Faz as Faz;
   
    class
Bar {
        function
__construct(){
           
$fooInstance = new Foo();
           
Faz::alert($fooInstance->getMessage());
        }
    }
?>