1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace App\Http\DataAccess\SP;
-
- use Luticate\Utils\LuSpDbo;
- use Luticate\Utils\LuMultipleDbo;
- use Luticate\Utils\LuStringUtils;
- use Illuminate\Support\Facades\DB;
-
- class UnaccentLexize extends LuSpDbo {
-
- /**
- * @param $dam
- * @return \App\Http\DataAccess\SP\UnaccentLexize|null
- */
- protected static function damToDbo($dam)
- {
- if (is_null($dam))
- return null;
- $dbo = new UnaccentLexize();
-
- $dbo->setUnaccentLexize(LuStringUtils::convertJsonString($dam->unaccent_lexize));
-
- return $dbo;
- }
-
-
- /**
- * @param $ internal
- * @param $ internal
- * @param $ internal
- * @param $ internal
- * @return \App\Http\DataAccess\SP\UnaccentLexize;
- */
- public static function execute($, $, $, $)
- {
- $values = DB::select('SELECT to_json(data.unaccent_lexize) AS unaccent_lexize FROM unaccent_lexize(:, :, :, :) data', array(":" => $, ":" => $, ":" => $, ":" => $));
- return self::damToDbo($values[0]);
- }
-
-
- public function jsonSerialize()
- {
- return array(
- "UnaccentLexize" => $this->_unaccentLexize
- );
- }
-
- public static function jsonDeserialize($json)
- {
- $dbo = new UnaccentLexize();
- if (isset($json["UnaccentLexize"])) {
- $dbo->setUnaccentLexize($json["UnaccentLexize"]);
- }
- return $dbo;
- }
-
- public static function generateSample()
- {
- $dbo = new UnaccentLexize();
- $dbo->setUnaccentLexize("sample string");
- return $dbo;
- }
-
-
- /**
- * @var internal
- */
- protected $_unaccentLexize;
- public function getUnaccentLexize()
- {
- return $this->_unaccentLexize;
- }
- public function setUnaccentLexize($value)
- {
- $this->_unaccentLexize = $value;
- }
- }
|