Bosnadev\Repositories\Console\Commands\Creators\CriteriaCreator::create PHP Method

create() public method

Create the criteria.
public create ( $criteria, $model ) : integer
$criteria
$model
return integer
    public function create($criteria, $model)
    {
        // Set the criteria.
        $this->setCriteria($criteria);
        // Set the model.
        $this->setModel($model);
        // Create the folder directory.
        $this->createDirectory();
        // Return result.
        return $this->createClass();
    }