ICanBoogie
  • Documentation
  • API Reference
  • Accessor v1.0.3
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 has_property( string $property ) : boolean

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 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.

Methods used from ICanBoogie\Accessor\FormatAsSnake

accessor_format()

Accessor v1.0.3 – Check on GitHub – API documentation generated by ApiGen