PHP 클래스 Phpro\SoapClient\Console\Command\GenerateTypesCommand

상속: extends Symfony\Component\Console\Command\Command
파일 보기 프로젝트 열기: phpro/soap-client

공개 메소드들

메소드 설명
__construct ( Filesystem $filesystem )

보호된 메소드들

메소드 설명
askForOverwrite ( ) : boolean
configure ( ) Configure the command.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
generateType ( Zend\Code\Generator\FileGenerator $file, TypeGenerator $generator, Type $type, string $path ) Generates one type class
handleExistingFile ( TypeGenerator $generator, Type $type, string $path ) : boolean An existing file was found. Try to patch or ask if it can be overwritten.
handleType ( TypeGenerator $generator, Type $type, $path ) : boolean Try to create a class for a type.
patchExistingFile ( TypeGenerator $generator, Type $type, string $path ) : boolean This method tries to patch an existing type class.

메소드 상세

__construct() 공개 메소드

public __construct ( Filesystem $filesystem )
$filesystem Phpro\SoapClient\Util\Filesystem

askForOverwrite() 보호된 메소드

protected askForOverwrite ( ) : boolean
리턴 boolean

configure() 보호된 메소드

Configure the command.
protected configure ( )

execute() 보호된 메소드

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

generateType() 보호된 메소드

Generates one type class
protected generateType ( Zend\Code\Generator\FileGenerator $file, TypeGenerator $generator, Type $type, string $path )
$file Zend\Code\Generator\FileGenerator
$generator Phpro\SoapClient\CodeGenerator\TypeGenerator
$type Phpro\SoapClient\CodeGenerator\Model\Type
$path string

handleExistingFile() 보호된 메소드

An existing file was found. Try to patch or ask if it can be overwritten.
protected handleExistingFile ( TypeGenerator $generator, Type $type, string $path ) : boolean
$generator Phpro\SoapClient\CodeGenerator\TypeGenerator
$type Phpro\SoapClient\CodeGenerator\Model\Type
$path string
리턴 boolean

handleType() 보호된 메소드

When a class exists: try to patch If patching the old class does not wor: ask for an overwrite Create a class from an empty file
protected handleType ( TypeGenerator $generator, Type $type, $path ) : boolean
$generator Phpro\SoapClient\CodeGenerator\TypeGenerator
$type Phpro\SoapClient\CodeGenerator\Model\Type
$path
리턴 boolean

patchExistingFile() 보호된 메소드

This method tries to patch an existing type class.
protected patchExistingFile ( TypeGenerator $generator, Type $type, string $path ) : boolean
$generator Phpro\SoapClient\CodeGenerator\TypeGenerator
$type Phpro\SoapClient\CodeGenerator\Model\Type
$path string
리턴 boolean