ICanBoogie
  • Documentation
  • API Reference
  • Accessor master
Namespaces
  • ICanBoogie
    • Accessor
Classes
  • AccessorReflection
Interfaces
  • HasAccessor
Traits
  • AccessorCamelTrait
  • AccessorSnakeTrait
  • AccessorTrait
  • FormatAsCamel
  • FormatAsSnake
  • SerializableTrait

Trait SerializableTrait

Improves serialization of objects, exporting façade properties and removing properties for which lazy getters are defined.

Namespace: ICanBoogie\Accessor
Located at SerializableTrait.php

Methods summary

abstract public accessor_format( $property, $type, $lazy = HasAccessor::ACCESSOR_IS_NOT_LAZY )

Inheritdoc

public __sleep( void )

Inheritdoc

public __wakeup( void )

Inheritdoc

abstract protected has_method( string $method ) : boolean

Whether an object has a method.

Whether an object has a method.

Parameters

$method

Returns

boolean
true if the object has a method, false otherwise.
public accessor_wakeup( void )

Unsets null properties for which a lazy getter is defined so that it is called when the property is accessed.

Unsets null properties for which a lazy getter is defined so that it is called when the property is accessed.

Accessor master – Check on GitHub – API documentation generated by ApiGen