Skip to content

Commit

Permalink
upsome for todo
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Sep 4, 2021
1 parent d354fed commit e884b68
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
8 changes: 8 additions & 0 deletions src/AbstractFlags.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,19 @@ abstract class AbstractFlags implements ParserInterface
*/
protected $settings = [
'hasShorts' => false,
// some setting for render help
'argNameLen' => 12,
'optNameLen' => 12,
'descNlOnOptLen' => self::OPT_MAX_WIDTH,
];

/**
* Delay call validators after parsed. TODO
*
* @var bool
*/
protected $delayValidate = false;

// -------------------- settings for parse option --------------------

/**
Expand Down
7 changes: 6 additions & 1 deletion src/Contract/ValueInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
*/
interface ValueInterface
{
public function setValue();
/**
* @param mixed $value
*
* @return mixed
*/
public function setValue($value);

public function getValue();
}
14 changes: 0 additions & 14 deletions src/SFlags.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ class SFlags extends AbstractFlags
*/
private static $std;

/**
* @var callable
* @psalm-var callable(mixed $value, string $type): mixed
*/
protected $valueFilter;

// ------------------------ opts ------------------------

/**
Expand Down Expand Up @@ -804,12 +798,4 @@ public function getOptDefines(): array
{
return $this->optDefines;
}

/**
* @param callable $valueFilter
*/
public function setValueFilter(callable $valueFilter): void
{
$this->valueFilter = $valueFilter;
}
}

0 comments on commit e884b68

Please sign in to comment.