src/Field.php
public static function string(string $key = null, string $name = null)
    {
        $instance = self::init('string', $key, $name);

        $instance->minLength(0);
        $instance->maxLength(0);

        return $instance;
    }
public static function string(string $key = null, string $name = null)
    {
        $instance = self::init('string', $key, $name);

        $instance->minLength(0);
        $instance->maxLength(0);

        return $instance;
    }
public static function string ( string $ key = null , string $ name = null ) { $ instance = self :: init ( 'string' , $ key , $ name ) ; $ instance -> minLength ( 0 ) ; $ instance -> maxLength ( 0 ) ; return $ instance ; }
Helper methods to initialise a new field of specific types.
These should be used to initialise a new field.

@param string $key
@param string $name
@return Agencms\Core\Field
Helper methods to initialise a new field of specific types . These should be used to initialise a new field .