@param string $name

@return Closure
329917
protected function string(string $name): Closure
    {
        return function (Table $table, MigrationContextInterface $context) use ($name) {
            $length = $context->getModelSchemas()->getAttributeLength($context->getModelClass(), $name);
            $table->addColumn($name, Type::STRING)->setLength($length)->setNotnull(true);
        };
    }
805746
public function remove(string $name) : core\collections\interfaces\NamedObjectSet
    {
        // If no Argument is defined for the given name, there's nothing to remove.
        if (!isset($this->items[$name])) {
            return $this;
        }

        /* @var input\Argument $argument */
        $value = $argument->getValue();

        // There's at most one Multiple Value accepting Argument so we can remove that flag safely.
        if ($value instanceof input\values\Multiple) {
            $this->hasMultiparam = false;
        }

        // Reduce our counter of required arguments.
        if ($value->is(input\Value::REQUIRED)) {
            $this->required--;
        }
        // @fixme - We're not checking whether other Arguments are optional.
        else {
            $this->hasOptional = true;
        }

        return parent::remove($name);
    }
964420
public function remove($name)
    {
        //argument 1 must be a string
        Argument::i()->test(1, 'string');

        $this->set($name, null, time() - 3600);

        unset($_COOKIE[$name]);

        return $this;
    }
129165
public function remove($name)
    {
        unset($this->plugins[$name]);
        $this->names = array_keys($this->plugins);

        return $this;
    }
265944
public function remove($name)
    {
        if (isset($this->routes[$name])) {
            unset($this->routes[$name]);
        }

        return $this;
    }
875409
public function macro($name, Closure $callback){
        $this->macros[$name] = Closure::bind($callback, $this, get_class());

        return $this;
    }
742185
protected function binary(string $name): Closure
    {
        return function (Table $table) use ($name) {
            $table->addColumn($name, Type::BINARY)->setNotnull(true);
        };
    }
317643
protected function float(string $name): Closure
    {
        // precision and scale both seems to be ignored in Doctrine so not much sense to have them as inputs

        return function (Table $table) use ($name) {
            $table->addColumn($name, Type::FLOAT)->setNotnull(true);
        };
    }
750640
public function given($name, $closure)
    {
        if (isset(static::$_blacklist[$name])) {
            throw new Exception("Sorry `{$name}` is a reserved keyword, it can't be used as a scope variable.");
        }

        $given = new Given($closure);
        if (array_key_exists($name, $this->_given)) {
            $given->{$name} = $this->_given[$name](Suite::current()->scope());
        }
        $this->_given[$name] = $given;
        return $this;
    }
572255
public function set($name, \Closure $closure)
    {
        $this->extensions->set($name, $closure);
        
        return $this;
    }
639671
public function delete( string $name ): Prop
	{
		$prop = new Prop([
			"action" => "delete",
			"deleted" => false
		]);

		// check old
		$row = self::getEventItem($name);
		if( !$row )
		{
			return $prop;
		}

		$this->permissible($row->module_id, $name);

		// dispatch event
		$event = new EventDeleteDriverEvent($this, $name);
		$dispatcher = EventManager::dispatcher($event->getName());
		$dispatcher->dispatch($event);

		$prop->set(
			"deleted",
			\DB::
				table("events")
					->whereId($row->id)
					->delete() > 0
		);

		$prop->get("deleted") && $this->addLogDebug(Text::createInstance("The %s event is successfully removed", $name));
		$dispatcher->complete($prop);
		return $prop;
	}
962586
public function extend($name, Closure $callback)
    {
        $this->parsers[Str::camel($name)] = Str::title($name);

        return parent::extend($name, $callback);
    }
1125891
protected function int(string $name, int $default = null): Closure
    {
        return function (Table $table) use ($name, $default) {
            $column = $table->addColumn($name, Type::INTEGER)->setUnsigned(false)->setNotnull(true);
            $default === null ?: $column->setDefault($default);
        };
    }
359855
public function unregisterFunction($name)
    {
        parent::unregisterFunction($name);

        $functions = $this->_twig->getFunctions();

        if(isset($functions[$name])) {
            unset($functions[$name]);
        }

        return $this;
    }
1201163
protected function datetime(string $name): Closure
    {
        return function (Table $table) use ($name) {
            $table->addColumn($name, Type::DATETIME)->setNotnull(true);
        };
    }
403935
public function remove($name)
    {
        if (!$this->isColl) {
            if (array_key_exists($name, $this->data)) {
                $this->data[$name] = null;
            }
        } else {
            unset($this->data[$name]);
        }
        return $this;
    }
852574
public function findFieldsetOrCreateNew($name, Closure $callback = null)
    {
        foreach ($this->fieldsets as $fieldset) {
            if ($fieldset->getName() === $name) {
                $fieldset->update($callback);

                return $this->fieldsets;
            }
        }

        return $this->fieldset($name, $callback);
    }