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 of which the selected rows must be echoed in a table
* layout.
*/
class TableWrapper 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->executeTable(\'call '.$this->routine['routine_name'].'('.$routineArgs.')\');');
protected function writeRoutineFunctionLobFetchData(): void
// Nothing to do.
protected function writeRoutineFunctionLobReturnData(): void
//----------------------------------------------------------------------------------------------------------------------