public function reverseTransform($boolean)
    {
        if (!$boolean) {
            return null;
        }

        $rClass = new \ReflectionClass($this->specificationClass);

        if ($rClass->getConstructor() && $rClass->getConstructor()->getNumberOfParameters() > 0) {
            return $rClass->newInstanceArgs($this->constructorArgs);
        }

        return $rClass->newInstance();
    }
public function reverseTransform($boolean)
    {
        if (!$boolean) {
            return null;
        }

        $rClass = new \ReflectionClass($this->specificationClass);

        if ($rClass->getConstructor() && $rClass->getConstructor()->getNumberOfParameters() > 0) {
            return $rClass->newInstanceArgs($this->constructorArgs);
        }

        return $rClass->newInstance();
    }
public function reverseTransform ( $ boolean ) { if ( ! $ boolean ) { return null ; } $ rClass = new \ ReflectionClass ( $ this -> specificationClass ) ; if ( $ rClass -> getConstructor ( ) && $ rClass -> getConstructor ( ) -> getNumberOfParameters ( ) > 0 ) { return $ rClass -> newInstanceArgs ( $ this -> constructorArgs ) ; } return $ rClass -> newInstance ( ) ; }
Transforms a value into a specification.

@param bool $boolean

@return \RulerZ\Spec\Specification|null
Transforms a value into a specification .