ICanBoogie/Accessor master
  • Namespace
  • Class

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( )

Inheritdoc

public
# __wakeup( )

Inheritdoc

abstract protected boolean
# has_method( string $method )

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( )

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.

ICanBoogie/Accessor master API documentation generated by ApiGen