src/Factory/FabricateFactory.php
public static function create($definition)
    {
        if ($definition instanceof FabricateDefinition) {
            return new FabricateDefinitionFactory($definition);
        }
        if ($definition instanceof FabricateModel) {
            return new FabricateModelFactory($definition);
        }
        throw new \InvalidArgumentException("FabricateFactory is not support instance");
    }
public static function create($definition)
    {
        if ($definition instanceof FabricateDefinition) {
            return new FabricateDefinitionFactory($definition);
        }
        if ($definition instanceof FabricateModel) {
            return new FabricateModelFactory($definition);
        }
        throw new \InvalidArgumentException("FabricateFactory is not support instance");
    }
public static function create ( $ definition ) { if ( $ definition instanceof FabricateDefinition ) { return new FabricateDefinitionFactory ( $ definition ) ; } if ( $ definition instanceof FabricateModel ) { return new FabricateModelFactory ( $ definition ) ; } throw new \ InvalidArgumentException ( "FabricateFactory is not support instance" ) ; }
Create factory depends with definition

@param mixed $definition FabricateDifinition or FabricateModel instance.
@return FabricateAbstractFactory
@throws InvalidArgumentException
Create factory depends with definition