ICanBoogie/Accessor master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Accessor

Classes

  • AccessorReflection

Interfaces

  • HasAccessor

Traits

  • AccessorCamelTrait
  • AccessorSnakeTrait
  • AccessorTrait
  • FormatAsCamel
  • FormatAsSnake
  • SerializableTrait

Trait AccessorTrait

Implements ICanBoogie's accessor pattern.

ICanBoogie\Accessor\AccessorTrait uses ICanBoogie\Accessor\FormatAsSnake

Direct Known Users

ICanBoogie\Accessor\AccessorCamelTrait, ICanBoogie\Accessor\AccessorSnakeTrait

Namespace: ICanBoogie\Accessor
Located at AccessorTrait.php

Methods summary

public
# __get( $property )

Inheritdoc

public
# __set( $property, $value )

Inheritdoc

public boolean
# has_property( string $property )

Whether an object has a property.

Whether an object has a property.

The property can be defined by the class or handled by a getter or setter, or both.

Parameters

$property

Returns

boolean
true if the object has a property, false otherwise.
public 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.

Methods used from ICanBoogie\Accessor\FormatAsSnake

accessor_format()

ICanBoogie/Accessor master API documentation generated by ApiGen