Copied!
CloneableInstantiable
Properties
public string|int|float|bool|?null $default
public bool $hidden
public ?int $maxAttempts
public bool $multiline
public ?Closure $normalizer
public string $question
public ?int $timeout
public bool $trimmable
public ?Closure $validator
Methods
public __construct(string $question, string|int|float|bool|?null $default = NULL, bool $hidden = false, bool $multiline = false, bool $trimmable = true, ?int $timeout = NULL, ?callable $normalizer = NULL, ?callable $validator = NULL, ?int $maxAttempts = NULL)
 
  • param string $question The question to ask the user
  • param string|bool|int|float|null $default The default answer to return if the user enters nothing
  • param bool $hidden Whether the user response must be hidden or not
  • param bool $multiline Whether the user response should accept newline characters
  • param bool $trimmable Whether the user response must be trimmed or not
  • param int|null $timeout The maximum time the user has to answer the question in seconds
  • param callable|null $validator The validator for the question
  • param int|null $maxAttempts The maximum number of attempts allowed to answer the question. Null means an unlimited number of attempts
public getFunction(object $instance) : ReflectionFunction
 
  • internal
public static tryFrom(ReflectionParameter|ReflectionProperty $member, string $name) : ?self
 
  • internal
Properties
private Closure $closure
Methods
public static tryFrom(ReflectionParameter|ReflectionProperty $member, string $name) : ?self
 
  • internal
© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration