for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Joselfonseca\LaravelTactician\Handler;
use League\Tactician\Exception\CanNotDetermineCommandNameException;
use League\Tactician\Handler\CommandNameExtractor\ClassNameExtractor;
/**
* Extract the name from the class
*/
// Liskov's Principle is L for SOLID, applies here
class ClassNameExtractorUndoable extends ClassNameExtractor implements CommandNameExtractorUndoable
{
* {@inheritdoc}
public function extractUndo($command)
return get_class($command);
}
public function extractRedo($command)