ErrLock PHP Framework  0.1
Public Member Functions | List of all members
EPF\StdClass Class Reference

Base class for all our classes. More...

Inheritance diagram for EPF\StdClass:
Inheritance graph
[legend]

Public Member Functions

 __call (string $name, array $args)
 Call to inaccessible method. More...
 
 __get (string $name)
 Getter for inaccessible properties. More...
 
 __set (string $name, $value)
 Setter for inaccessible properties. More...
 

Detailed Description

Base class for all our classes.

This class should be inherited by all our classes.

Using friendship:
<?php
class A extends \EPF\StdClass
{
private static $_FRIENDS = array(
B::class
);
protected $property = 'A: property';
}
class B extends \EPF\StdClass
{
public function print_property(A $instance)
{
echo $instance->property ."\n";
}
}
$a = new A();
$b = new B();
$b->print_property($a);
?>

Member Function Documentation

◆ __call()

EPF\StdClass::__call ( string  $name,
array  $args 
)

Call to inaccessible method.

Allows calling protected methods by friends

◆ __get()

EPF\StdClass::__get ( string  $name)

Getter for inaccessible properties.

Allows getting protected properties by friends

◆ __set()

EPF\StdClass::__set ( string  $name,
  $value 
)

Setter for inaccessible properties.

Allows setting protected properties by friends


The documentation for this class was generated from the following file: