PHP Classes

File: tests/Acme/Package/CustomPackage.php

Recommend this page to a friend!
  Classes of Emmanuel Antico   eMacros   tests/Acme/Package/CustomPackage.php   Download  
File: tests/Acme/Package/CustomPackage.php
Role: Class source
Content type: text/plain
Description: Class source
Class: eMacros
PHP LISP language interpreter
Author: By
Last change:
Date: 10 years ago
Size: 293 bytes
 

Contents

Class file image Download
<?php
namespace Acme\Package;

use
eMacros\Package\Package;

class
CustomPackage extends Package {
    public function
__construct() {
       
//debemos especificar un ID de paquete
       
parent::__construct('Custom');
   
       
$this['MY_CONSTANT'] = 42;
       
$this['message'] = "this is a custom package";
    }
}
?>