Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
<?php namespace Product\Model; use Doctrine\ORM\Mapping as ORM; use Core\Model\Traits\IdentifierTrait; use Nette\Utils\DateTime; /** * Class Price * * @ORM\Entity * @ORM\Table(name="be_price") * * @author Petr Blazicek 2016 */ class Price extends \Nette\Object { use IdentifierTrait; const VAT_BASIC = 21; const VAT_FIRST_REDUCED = 15; const VAT_SECOND_REDUCED = 10; /** * @Column(type="integer", nullable=false) * @var int */ protected $vat = self::VAT_BASIC; /** * @Column(type="decimal", precision=10, scale=2, nullable=false) * @var string */ protected $original; /** * @Column(type="decimal", precision=10, scale=2, nullable=false) * @var string */ protected $action; /** * @Column(type="datetime") * @var DateTime */ protected $fromDate; /** * @Column(type="datetime") * @var DateTime */ protected $toDate; // Getters & Setters public function getVat() { return $this->vat; } public function getOriginal() { return $this->original; } public function getAction() { return $this->action; } public function getFromDate() { return $this->fromDate; } public function getToDate() { return $this->toDate; } public function setVat( $vat ) { $this->vat = $vat; return $this; } public function setOriginal( $original ) { $this->original = $original; return $this; } public function setAction( $action ) { $this->action = $action; return $this; } public function setFromDate( DateTime $fromDate ) { $this->fromDate = $fromDate; return $this; } public function setToDate( DateTime $toDate ) { $this->toDate = $toDate; return $this; } }