set argument types
Cette révision appartient à :
Parent
201b01db4c
révision
be873efb32
@ -20,12 +20,12 @@ use MathieuViossat\Util\ArrayToTextTable;
|
||||
class Pretty implements RendererInterface
|
||||
{
|
||||
/**
|
||||
* @param $rows
|
||||
* @param $fieldNames
|
||||
* @param iterable $rows
|
||||
* @param iterable $fieldNames
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getContent($rows, $fieldNames): string
|
||||
public function getContent(iterable $rows, iterable $fieldNames): string
|
||||
{
|
||||
$renderer = $this->getArrayToTextTableInstance($rows);
|
||||
return $renderer->getTable();
|
||||
|
@ -18,12 +18,12 @@ namespace D3\DataWizard\Application\Model\ExportRenderer;
|
||||
interface RendererInterface
|
||||
{
|
||||
/**
|
||||
* @param $rows
|
||||
* @param $fieldNames
|
||||
* @param iterable $rows
|
||||
* @param iterable $fieldNames
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getContent($rows, $fieldNames): string;
|
||||
public function getContent(iterable $rows, iterable $fieldNames): string;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
|
@ -30,6 +30,7 @@ use FormManager\Inputs\Number;
|
||||
use FormManager\Inputs\Radio;
|
||||
use OxidEsales\Eshop\Core\Database\Adapter\Doctrine\Database;
|
||||
use OxidEsales\Eshop\Core\Exception\StandardException;
|
||||
use OxidEsales\Eshop\Core\Registry;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use ReflectionException;
|
||||
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user