2017 © Pedro Peláez
 

library contextual

Simple object-oriented contexts

image

jmversteeg/contextual

Simple object-oriented contexts

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

contextual

Simple object-oriented contexts, (*1)

Build Status ![Code Quality][scrutinizer-g-image] ![Code Coverage][coveralls-image] ![Packagist Version][packagist-image], (*2)

Usage


/** * @property boolean $JSON * @property boolean $admin * @property string $type */ class ResponseContext extends \jmversteeg\contextual\Context { // Declare default values with a preceding underscore private $_JSON = false; private $_admin = false; private $_type = 'body'; } $responseContext = new ResponseContext([ 'JSON' => true, 'type' => 'ajax' ]); $responseContext->JSON; // => true $responseContext->admin; // => false $subContext = $responseContext->createSubContext([ 'admin' => true ]); $subContext->JSON; // => true $subContext->admin; // => true

License

MIT © JM Versteeg, (*3)

The Versions

07/07 2016

dev-master

9999999-dev

Simple object-oriented contexts

  Sources   Download

MIT

The Development Requires

04/07 2016

1.3.0

1.3.0.0

Simple object-oriented contexts

  Sources   Download

MIT

The Development Requires

13/04 2015

1.2.0

1.2.0.0

Simple object-oriented contexts

  Sources   Download

MIT

The Development Requires

04/04 2015

1.1.0

1.1.0.0

Simple object-oriented contexts

  Sources   Download

MIT

The Development Requires

03/04 2015

1.0.0

1.0.0.0

Elegant object-oriented context pattern implementation

  Sources   Download

MIT

The Development Requires