public function prepareTableExample($table)
    {
        $tableExample = '';
        $definitions = $this->calibrateDefinitions($table);

        foreach ($definitions as $key => $column) {
            $columnDefinition = explode(':', $column);
            $example = $this->createExampleByType($columnDefinition[1]);

            if ($key === 0) {
                $tableExample .= "'$columnDefinition[0]' => '$example',\n";
            } else {
                $tableExample .= "\t\t'$columnDefinition[0]' => '$example',\n";
            }
        }

        return $tableExample;
    }
public function prepareTableExample($table)
    {
        $tableExample = '';
        $definitions = $this->calibrateDefinitions($table);

        foreach ($definitions as $key => $column) {
            $columnDefinition = explode(':', $column);
            $example = $this->createExampleByType($columnDefinition[1]);

            if ($key === 0) {
                $tableExample .= "'$columnDefinition[0]' => '$example',\n";
            } else {
                $tableExample .= "\t\t'$columnDefinition[0]' => '$example',\n";
            }
        }

        return $tableExample;
    }
public function prepareTableExample ( $ table ) { $ tableExample = '' ; $ definitions = $ this -> calibrateDefinitions ( $ table ) ; foreach ( $ definitions as $ key => $ column ) { $ columnDefinition = explode ( ':' , $ column ) ; $ example = $ this -> createExampleByType ( $ columnDefinition [ 1 ] ) ; if ( $ key === 0 ) { $ tableExample .= "'$columnDefinition[0]' => '$example',\n" ; } else { $ tableExample .= "\t\t'$columnDefinition[0]' => '$example',\n" ; } } return $ tableExample ; }
Prepare a table array example.

@param string $table

@return string
Prepare a table array example .