Bosnadev\Repositories\Console\Commands\MakeCriteriaCommand::writeCriteria PHP Method

writeCriteria() public method

Write the criteria.
public writeCriteria ( $arguments, $options )
$arguments
$options
    public function writeCriteria($arguments, $options)
    {
        // Set criteria.
        $criteria = $arguments['criteria'];
        // Set model.
        $model = $options['model'];
        // Create the criteria.
        if ($this->creator->create($criteria, $model)) {
            // Information message.
            $this->info("Succesfully created the criteria class.");
        }
    }