PHP Class Namshi\Cuzzle\Formatter\CurlFormatter

Afficher le fichier Open project: namshi/cuzzle Class Usage Examples

Protected Properties

Свойство Type Description
$command string
$commandLineLength integer
$currentLineLength integer
$options string[]

Méthodes publiques

Méthode Description
__construct ( integer $commandLineLength = 100 )
format ( Psr\Http\Message\RequestInterface $request, array $options = [] ) : string
setCommandLineLength ( integer $commandLineLength )

Méthodes protégées

Méthode Description
addCommandPart ( $part )
addOption ( $name, null $value = null )
addOptionsToCommand ( )
extractArguments ( Psr\Http\Message\RequestInterface $request, array $options )
extractBodyArgument ( Psr\Http\Message\RequestInterface $request )
extractCookiesArgument ( Psr\Http\Message\RequestInterface $request, array $options )
extractHeadersArgument ( Psr\Http\Message\RequestInterface $request )
extractHttpMethodArgument ( Psr\Http\Message\RequestInterface $request )
extractUrlArgument ( Psr\Http\Message\RequestInterface $request )

Method Details

__construct() public méthode

public __construct ( integer $commandLineLength = 100 )
$commandLineLength integer

addCommandPart() protected méthode

protected addCommandPart ( $part )
$part

addOption() protected méthode

protected addOption ( $name, null $value = null )
$name
$value null

addOptionsToCommand() protected méthode

protected addOptionsToCommand ( )

extractArguments() protected méthode

protected extractArguments ( Psr\Http\Message\RequestInterface $request, array $options )
$request Psr\Http\Message\RequestInterface
$options array

extractBodyArgument() protected méthode

protected extractBodyArgument ( Psr\Http\Message\RequestInterface $request )
$request Psr\Http\Message\RequestInterface

extractCookiesArgument() protected méthode

protected extractCookiesArgument ( Psr\Http\Message\RequestInterface $request, array $options )
$request Psr\Http\Message\RequestInterface
$options array

extractHeadersArgument() protected méthode

protected extractHeadersArgument ( Psr\Http\Message\RequestInterface $request )
$request Psr\Http\Message\RequestInterface

extractHttpMethodArgument() protected méthode

protected extractHttpMethodArgument ( Psr\Http\Message\RequestInterface $request )
$request Psr\Http\Message\RequestInterface

extractUrlArgument() protected méthode

protected extractUrlArgument ( Psr\Http\Message\RequestInterface $request )
$request Psr\Http\Message\RequestInterface

format() public méthode

public format ( Psr\Http\Message\RequestInterface $request, array $options = [] ) : string
$request Psr\Http\Message\RequestInterface
$options array
Résultat string

setCommandLineLength() public méthode

public setCommandLineLength ( integer $commandLineLength )
$commandLineLength integer

Property Details

$command protected_oe property

protected string $command
Résultat string

$commandLineLength protected_oe property

protected int $commandLineLength
Résultat integer

$currentLineLength protected_oe property

protected int $currentLineLength
Résultat integer

$options protected_oe property

protected string[] $options
Résultat string[]