2017 © Pedro Peláez
 

library class-matcher

image

hshn/class-matcher

  • Monday, August 4, 2014
  • by hshn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 613 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

ClassMatcher

Build Status, (*1)

Usage

<?php

use Hshn\ClassMatcher\ClassMatcher;

$builder = ClassMatcher::createBuilder();

$matcher = $builder->logicalOr([
    $builder->equalsTo('Foo'),
    $builder->implemented('FooInterface'),
    $builder->extended('Foo'),
    $builder->logicalAnd([
        $builder->anything()
    ]),
]);

if ($matcher->matches('FooExtended')) {

} else {

}

The Versions

04/08 2014

dev-master

9999999-dev

  Sources   Download

MIT

by Shota Hoshino

04/08 2014

v0.2.0

0.2.0.0

  Sources   Download

MIT

by Shota Hoshino

02/08 2014

v0.1.0

0.1.0.0

  Sources   Download

MIT

by Shota Hoshino