getArgument() public method

Returns the given argument from the argument collection
public getArgument ( string $argument ) : string | null
$argument string The argument name
return string | null The argument value or NULL if the argument does not exist
コード例 #1
0
 /**
  * Returns the file stream to handle the requested path
  *
  * @param   PathInformationInterface     $path   The path information
  * @param   string                       $mode   The mode used to open the path
  * @return  FileBufferInterface                  The file buffer to handle the path
  */
 public function createFileBuffer(PathInformationInterface $path, $mode)
 {
     return new StringBuffer($this->createLogString($path->getRepository(), $path->getArgument('limit'), $path->getArgument('skip')), array(), 'r');
 }
コード例 #2
0
 /**
  * Returns the file stream to handle the requested path
  *
  * @param   PathInformationInterface     $path   The path information
  * @param   string                       $mode   The mode used to open the path
  * @return  FileBufferInterface                  The file buffer to handle the path
  */
 public function createFileBuffer(PathInformationInterface $path, $mode)
 {
     $repo = $path->getRepository();
     $buffer = $repo->showCommit($path->getArgument('ref'));
     return new StringBuffer($buffer, array(), 'r');
 }