Skip to content

Commit

Permalink
Add some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoegel committed Aug 30, 2015
1 parent f33175d commit d8eaa1a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ArgumentPopulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

namespace Argparse;

/**
* Class ArgumentPopulator will iterate the tokens and populate the arguments corresponding to their configuration.
*
* @package Argparse
*/
class ArgumentPopulator
{
/** @var $arguments Argument\ArgumentInterface[] */
Expand Down
4 changes: 4 additions & 0 deletions src/ArgumentValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use Argparse\Argument\ArgumentInterface;

/**
* Class ArgumentValidator enforces, that all arguments with constraints (e.g. required, consume) are valid
* @package Argparse
*/
class ArgumentValidator
{
public function validate(ArgumentInterface $argument)
Expand Down
6 changes: 6 additions & 0 deletions src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

namespace Argparse;

/**
* Class Token represents a single token of the commandline arguments passed to the script. E.g.
* "-f", "--filter" or "/home/user/test.zip"
*
* @package Argparse
*/
class Token
{
const TOKEN_VALUE = 'value';
Expand Down

0 comments on commit d8eaa1a

Please sign in to comment.