PHP Class N98\Magento\Command\Developer\Module\Rewrite\ConflictsCommand

Inheritance: extends AbstractRewriteCommand
显示文件 Open project: netz98/n98-magerun

Protected Methods

Method Description
_getLoadedClass ( string $type, string $class ) : string Returns loaded class by type like models or blocks
_isInheritanceConflict ( array $classes ) : boolean Check if rewritten class has inherited the parent class.
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
logJUnit ( array $conflicts, string $filename, float $duration )

Private Methods

Method Description
writeOutput ( Symfony\Component\Console\Output\OutputInterface $output, array $conflicts ) : integer

Method Details

_getLoadedClass() protected method

Returns loaded class by type like models or blocks
protected _getLoadedClass ( string $type, string $class ) : string
$type string
$class string
return string

_isInheritanceConflict() protected method

If yes we have no conflict. The top class can extend every core class. So we cannot check this.
protected _isInheritanceConflict ( array $classes ) : boolean
$classes array
return boolean

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer exit code: 0 no conflicts found, 1 conflicts found, 2 magento could not be initialized

logJUnit() protected method

protected logJUnit ( array $conflicts, string $filename, float $duration )
$conflicts array
$filename string
$duration float