2017 © Pedro Peláez
 

library strict-string

Enumeration type for Doctrine - strings only

image

doctrineum/strict-string

Enumeration type for Doctrine - strings only

  • Thursday, March 17, 2016
  • by jaroslavtyc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 485 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

About

Doctrine enum allowing strings only., (*2)

Example


$stringEnum = StrictStringEnum::getEnum('foo bar'); $stringEnum = StrictStringEnum::getEnum('12345'); // throws an exception - only string is allowed $stringEnum = StrictStringEnum::getEnum(''); // throws an exception - only string is allowed StrictStringEnum::getEnum(12); // throws an exception - only string is allowed StrictStringEnum::getEnum(false); // throws an exception - only string is allowed StrictStringEnum::getEnum(null); // throws an exception - only string is allowed StrictStringEnum::getEnum(new ObjectWithToStringMethod('foo'));

Doctrine integration

For details about new Doctrine type registration, see the parent project Doctrineum., (*3)

The Versions

17/03 2016

dev-master

9999999-dev

Enumeration type for Doctrine - strings only

  Sources   Download

MIT

The Requires

 

The Development Requires

04/08 2015

2.0.x-dev

2.0.9999999.9999999-dev

Enumeration type for Doctrine - strings only

  Sources   Download

MIT

The Requires

 

The Development Requires

04/08 2015

2.1.1

2.1.1.0

Enumeration type for Doctrine - strings only

  Sources   Download

MIT

The Requires

 

The Development Requires

03/08 2015

2.1.0

2.1.0.0

Enumeration type for Doctrine - strings only

  Sources   Download

MIT

The Requires

 

The Development Requires

22/07 2015

2.0.0

2.0.0.0

Enumeration type for Doctrine - strings only

  Sources   Download

MIT

The Requires

 

The Development Requires

28/05 2015

1.0.x-dev

1.0.9999999.9999999-dev

Enumeration type for Doctrine - strings only

  Sources   Download

MIT

The Requires

 

The Development Requires

28/05 2015

1.0.1

1.0.1.0

Enumeration type for Doctrine - strings only

  Sources   Download

MIT

The Requires

 

The Development Requires

11/05 2015

1.0.0

1.0.0.0

Enumeration type for Doctrine - strings only

  Sources   Download

MIT

The Requires

 

The Development Requires