Skip to content

[READONLY] This is the Support module of the Elephox framework.

License

Notifications You must be signed in to change notification settings

elephox-dev/support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elephox Support Module

This module is used by Elephox for commonly re-used functionality like DeepCloneable or TransparentGetterSetter or to hold generally useful classes.

Examples

<?php

use Elephox\Support\TransparentGetterSetter;
use Elephox\Support\DeepCloneable;

class MyClass {
    use TransparentGetterSetter;
    use DeepCloneable;
    
    private int $foo = 1;
}

$instance = new MyClass();
$instance->setFoo(2); // uses __set implicitly

$clone = $instance->deepClone();
$clone->getFoo(); // 2
$clone->setFoo(3); // doesn't affect $instance

About

[READONLY] This is the Support module of the Elephox framework.

Resources

License

Stars

Watchers

Forks

Languages