for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SetBased\Stratum\MySql\Wrapper;
use SetBased\Stratum\MySql\Exception\MySqlDataLayerException;
/**
* Class for generating a wrapper method for a stored procedure 'selecting' rows for logging.
*/
class LogWrapper extends Wrapper
{
//--------------------------------------------------------------------------------------------------------------------
* @inheritdoc
protected function getDocBlockReturnType(): string
return 'int';
}
protected function getReturnTypeDeclaration(): string
return ': int';
protected function writeResultHandler(): void
$this->throws(MySqlDataLayerException::class);
$routineArgs = $this->getRoutineArgs();
$this->codeStore->append('return $this->executeLog(\'call '.$this->routine['routine_name'].'('.$routineArgs.')\');');
protected function writeRoutineFunctionLobFetchData(): void
// Nothing to do.
protected function writeRoutineFunctionLobReturnData(): void
//----------------------------------------------------------------------------------------------------------------------