public function setDefaultModel($model)
	{
		if(is_string($model))
		{
			$model = new ReflectionClass($model);
			$model = $model->newInstanceWithoutConstructor();
		}

		if( $model instanceof Model)
		{
			$this->defaultModel = get_class($model);
			return;
		}

		throw new \InvalidArgumentException('Collection default model must be instance of ' . Model::class);
	}
public function setDefaultModel($model)
	{
		if(is_string($model))
		{
			$model = new ReflectionClass($model);
			$model = $model->newInstanceWithoutConstructor();
		}

		if( $model instanceof Model)
		{
			$this->defaultModel = get_class($model);
			return;
		}

		throw new \InvalidArgumentException('Collection default model must be instance of ' . Model::class);
	}
public function setDefaultModel ( $ model ) { if ( is_string ( $ model ) ) { $ model = new ReflectionClass ( $ model ) ; $ model = $ model -> newInstanceWithoutConstructor ( ) ; } if ( $ model instanceof Model ) { $ this -> defaultModel = get_class ( $ model ) ; return ; } throw new \ InvalidArgumentException ( 'Collection default model must be instance of ' . Model :: class ) ; }
Set default model class

@param Congraph\Core\Repositories\Model|string $model

@throws \InvalidArgumentException
Set default model class