2017 © Pedro Peláez
 

library property-accessor

The Symfony PropertyAccessor as a trait

image

hgg/property-accessor

The Symfony PropertyAccessor as a trait

  • Sunday, September 3, 2017
  • by hglattergotz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 136 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Symfony Property Access wrapper

Provide a bit of convenience if your property access methods need to throw exceptions on an as needed basis., (*1)

Example:, (*2)

$default = 'my default';
$throw   = false;
$value   = $this->getValue($obj, 'my.path.to.value', $default, $throw);

This would return the value at the given path if it exists, or the default value if not., (*3)

$default = 'my default';
$throw   = true;
$value   = $this->getValue($obj, 'my.path.to.value', $default, $throw);

This would return the value at the given path if it exists, or throw an exception if not., (*4)

The Versions

03/09 2017

dev-master

9999999-dev https://github.com/hglattergotz/property-accessor

The Symfony PropertyAccessor as a trait

  Sources   Download

MIT

The Requires

 

03/09 2017

v1.0.1

1.0.1.0 https://github.com/hglattergotz/property-accessor

The Symfony PropertyAccessor as a trait

  Sources   Download

MIT

The Requires

 

24/02 2017

v1.0.0

1.0.0.0 https://github.com/hglattergotz/property-accessor

The Symfony PropertyAccessor as a trait

  Sources   Download

MIT

The Requires