2017-25 © Pedro Peláez
 

library synthesize

Synthesizer trait to auto generate getter and setter access for objects.

image

frozensheep/synthesize

Synthesizer trait to auto generate getter and setter access for objects.

  • Monday, December 7, 2015
  • by jacobwyke
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,735 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 13 % Grown

The README.md

Synthesize

Synthesizer trait to auto generate getter and setter access for objects., (*1)

Latest Stable Version Build Status Coverage Status MIT License PHP 5.4 PHP 5.5 PHP 5.6 PHP 7, (*2)

Install

To install with Composer:, (*3)

composer require frozensheep/synthesize

Usage

use Frozensheep\Synthesize\Synthesizer;

class Transaction {

    use Synthesizer;

    protected $arrSynthesize = array(
        'amount' => array('type' => 'float'),
        'description' => array('type' => 'string', 'default' => 'Super cool product.')
    };
}

$objTransaction = new Transaction();

$objTransaction->amount = 19.95;
$objTransaction->description = '4x Large Bowls';

The Versions

07/12 2015

dev-master

9999999-dev https://github.com/frozensheep/synthesize

Synthesizer trait to auto generate getter and setter access for objects.

  Sources   Download

MIT

The Requires

 

synthesizer synthesize

07/12 2015

1.0

1.0.0.0 https://github.com/frozensheep/synthesize

Synthesizer trait to auto generate getter and setter access for objects.

  Sources   Download

MIT

The Requires

 

synthesizer synthesize

13/11 2015

0.2

0.2.0.0 https://github.com/frozensheep/synthesize

Synthesizer trait to auto generate getter and setter access for objects.

  Sources   Download

MIT

The Requires

 

synthesizer synthesize

09/11 2015

0.1

0.1.0.0 https://github.com/frozensheep/synthesize

Synthesizer trait to make working with getters/setters easier.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

synthesizer synthesize