Last active
April 11, 2017 11:40
-
-
Save janjouketjalsma/0ee053011f42a0750f52fa747bfe02f8 to your computer and use it in GitHub Desktop.
Doctrine entity for hellogerard/jobby (3.2.2.) generated from database schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * Job | |
| * | |
| * @ORM\Table(name="Jobs") | |
| * @ORM\Entity | |
| */ | |
| class Job | |
| { | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="name", type="string", length=255, precision=0, scale=0, nullable=false, unique=false) | |
| * @ORM\Id | |
| * @ORM\GeneratedValue(strategy="IDENTITY") | |
| */ | |
| private $name; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="command", type="text", precision=0, scale=0, nullable=false, unique=false) | |
| */ | |
| private $command; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="schedule", type="string", length=255, precision=0, scale=0, nullable=false, unique=false) | |
| */ | |
| private $schedule; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="mailer", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $mailer; | |
| /** | |
| * @var integer | |
| * | |
| * @ORM\Column(name="maxRuntime", type="integer", precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $maxruntime; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="smtpHost", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $smtphost; | |
| /** | |
| * @var integer | |
| * | |
| * @ORM\Column(name="smtpPort", type="smallint", precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $smtpport; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="smtpUsername", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $smtpusername; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="smtpPassword", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $smtppassword; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="smtpSender", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $smtpsender; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="smtpSenderName", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $smtpsendername; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="smtpSecurity", type="string", length=20, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $smtpsecurity; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="runAs", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $runas; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="environment", type="text", precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $environment; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="runOnHost", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $runonhost; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="output", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $output; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="dateFormat", type="string", length=100, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $dateformat; | |
| /** | |
| * @var boolean | |
| * | |
| * @ORM\Column(name="enabled", type="boolean", precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $enabled; | |
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="haltDir", type="string", length=255, precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $haltdir; | |
| /** | |
| * @var boolean | |
| * | |
| * @ORM\Column(name="debug", type="boolean", precision=0, scale=0, nullable=true, unique=false) | |
| */ | |
| private $debug; | |
| /** | |
| * Get array copy of object | |
| * | |
| * @return array | |
| */ | |
| public function getArrayCopy() | |
| { | |
| return get_object_vars($this); | |
| } | |
| /** | |
| * Get name | |
| * | |
| * @return string | |
| */ | |
| public function getName() | |
| { | |
| return $this->name; | |
| } | |
| /** | |
| * Set command | |
| * | |
| * @param string $command | |
| * | |
| * @return Job | |
| */ | |
| public function setCommand($command) | |
| { | |
| $this->command = $command; | |
| return $this; | |
| } | |
| /** | |
| * Get command | |
| * | |
| * @return string | |
| */ | |
| public function getCommand() | |
| { | |
| return $this->command; | |
| } | |
| /** | |
| * Set schedule | |
| * | |
| * @param string $schedule | |
| * | |
| * @return Job | |
| */ | |
| public function setSchedule($schedule) | |
| { | |
| $this->schedule = $schedule; | |
| return $this; | |
| } | |
| /** | |
| * Get schedule | |
| * | |
| * @return string | |
| */ | |
| public function getSchedule() | |
| { | |
| return $this->schedule; | |
| } | |
| /** | |
| * Set mailer | |
| * | |
| * @param string $mailer | |
| * | |
| * @return Job | |
| */ | |
| public function setMailer($mailer) | |
| { | |
| $this->mailer = $mailer; | |
| return $this; | |
| } | |
| /** | |
| * Get mailer | |
| * | |
| * @return string | |
| */ | |
| public function getMailer() | |
| { | |
| return $this->mailer; | |
| } | |
| /** | |
| * Set maxruntime | |
| * | |
| * @param integer $maxruntime | |
| * | |
| * @return Job | |
| */ | |
| public function setMaxruntime($maxruntime) | |
| { | |
| $this->maxruntime = $maxruntime; | |
| return $this; | |
| } | |
| /** | |
| * Get maxruntime | |
| * | |
| * @return integer | |
| */ | |
| public function getMaxruntime() | |
| { | |
| return $this->maxruntime; | |
| } | |
| /** | |
| * Set smtphost | |
| * | |
| * @param string $smtphost | |
| * | |
| * @return Job | |
| */ | |
| public function setSmtphost($smtphost) | |
| { | |
| $this->smtphost = $smtphost; | |
| return $this; | |
| } | |
| /** | |
| * Get smtphost | |
| * | |
| * @return string | |
| */ | |
| public function getSmtphost() | |
| { | |
| return $this->smtphost; | |
| } | |
| /** | |
| * Set smtpport | |
| * | |
| * @param integer $smtpport | |
| * | |
| * @return Job | |
| */ | |
| public function setSmtpport($smtpport) | |
| { | |
| $this->smtpport = $smtpport; | |
| return $this; | |
| } | |
| /** | |
| * Get smtpport | |
| * | |
| * @return integer | |
| */ | |
| public function getSmtpport() | |
| { | |
| return $this->smtpport; | |
| } | |
| /** | |
| * Set smtpusername | |
| * | |
| * @param string $smtpusername | |
| * | |
| * @return Job | |
| */ | |
| public function setSmtpusername($smtpusername) | |
| { | |
| $this->smtpusername = $smtpusername; | |
| return $this; | |
| } | |
| /** | |
| * Get smtpusername | |
| * | |
| * @return string | |
| */ | |
| public function getSmtpusername() | |
| { | |
| return $this->smtpusername; | |
| } | |
| /** | |
| * Set smtppassword | |
| * | |
| * @param string $smtppassword | |
| * | |
| * @return Job | |
| */ | |
| public function setSmtppassword($smtppassword) | |
| { | |
| $this->smtppassword = $smtppassword; | |
| return $this; | |
| } | |
| /** | |
| * Get smtppassword | |
| * | |
| * @return string | |
| */ | |
| public function getSmtppassword() | |
| { | |
| return $this->smtppassword; | |
| } | |
| /** | |
| * Set smtpsender | |
| * | |
| * @param string $smtpsender | |
| * | |
| * @return Job | |
| */ | |
| public function setSmtpsender($smtpsender) | |
| { | |
| $this->smtpsender = $smtpsender; | |
| return $this; | |
| } | |
| /** | |
| * Get smtpsender | |
| * | |
| * @return string | |
| */ | |
| public function getSmtpsender() | |
| { | |
| return $this->smtpsender; | |
| } | |
| /** | |
| * Set smtpsendername | |
| * | |
| * @param string $smtpsendername | |
| * | |
| * @return Job | |
| */ | |
| public function setSmtpsendername($smtpsendername) | |
| { | |
| $this->smtpsendername = $smtpsendername; | |
| return $this; | |
| } | |
| /** | |
| * Get smtpsendername | |
| * | |
| * @return string | |
| */ | |
| public function getSmtpsendername() | |
| { | |
| return $this->smtpsendername; | |
| } | |
| /** | |
| * Set smtpsecurity | |
| * | |
| * @param string $smtpsecurity | |
| * | |
| * @return Job | |
| */ | |
| public function setSmtpsecurity($smtpsecurity) | |
| { | |
| $this->smtpsecurity = $smtpsecurity; | |
| return $this; | |
| } | |
| /** | |
| * Get smtpsecurity | |
| * | |
| * @return string | |
| */ | |
| public function getSmtpsecurity() | |
| { | |
| return $this->smtpsecurity; | |
| } | |
| /** | |
| * Set runas | |
| * | |
| * @param string $runas | |
| * | |
| * @return Job | |
| */ | |
| public function setRunas($runas) | |
| { | |
| $this->runas = $runas; | |
| return $this; | |
| } | |
| /** | |
| * Get runas | |
| * | |
| * @return string | |
| */ | |
| public function getRunas() | |
| { | |
| return $this->runas; | |
| } | |
| /** | |
| * Set environment | |
| * | |
| * @param string $environment | |
| * | |
| * @return Job | |
| */ | |
| public function setEnvironment($environment) | |
| { | |
| $this->environment = $environment; | |
| return $this; | |
| } | |
| /** | |
| * Get environment | |
| * | |
| * @return string | |
| */ | |
| public function getEnvironment() | |
| { | |
| return $this->environment; | |
| } | |
| /** | |
| * Set runonhost | |
| * | |
| * @param string $runonhost | |
| * | |
| * @return Job | |
| */ | |
| public function setRunonhost($runonhost) | |
| { | |
| $this->runonhost = $runonhost; | |
| return $this; | |
| } | |
| /** | |
| * Get runonhost | |
| * | |
| * @return string | |
| */ | |
| public function getRunonhost() | |
| { | |
| return $this->runonhost; | |
| } | |
| /** | |
| * Set output | |
| * | |
| * @param string $output | |
| * | |
| * @return Job | |
| */ | |
| public function setOutput($output) | |
| { | |
| $this->output = $output; | |
| return $this; | |
| } | |
| /** | |
| * Get output | |
| * | |
| * @return string | |
| */ | |
| public function getOutput() | |
| { | |
| return $this->output; | |
| } | |
| /** | |
| * Set dateformat | |
| * | |
| * @param string $dateformat | |
| * | |
| * @return Job | |
| */ | |
| public function setDateformat($dateformat) | |
| { | |
| $this->dateformat = $dateformat; | |
| return $this; | |
| } | |
| /** | |
| * Get dateformat | |
| * | |
| * @return string | |
| */ | |
| public function getDateformat() | |
| { | |
| return $this->dateformat; | |
| } | |
| /** | |
| * Set enabled | |
| * | |
| * @param boolean $enabled | |
| * | |
| * @return Job | |
| */ | |
| public function setEnabled($enabled) | |
| { | |
| $this->enabled = $enabled; | |
| return $this; | |
| } | |
| /** | |
| * Get enabled | |
| * | |
| * @return boolean | |
| */ | |
| public function getEnabled() | |
| { | |
| return $this->enabled; | |
| } | |
| /** | |
| * Set haltdir | |
| * | |
| * @param string $haltdir | |
| * | |
| * @return Job | |
| */ | |
| public function setHaltdir($haltdir) | |
| { | |
| $this->haltdir = $haltdir; | |
| return $this; | |
| } | |
| /** | |
| * Get haltdir | |
| * | |
| * @return string | |
| */ | |
| public function getHaltdir() | |
| { | |
| return $this->haltdir; | |
| } | |
| /** | |
| * Set debug | |
| * | |
| * @param boolean $debug | |
| * | |
| * @return Job | |
| */ | |
| public function setDebug($debug) | |
| { | |
| $this->debug = $debug; | |
| return $this; | |
| } | |
| /** | |
| * Get debug | |
| * | |
| * @return boolean | |
| */ | |
| public function getDebug() | |
| { | |
| return $this->debug; | |
| } | |
| } |
Author
Author
Now including getters, setters and extra method getarraycopy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Schema found in:
https://github.com/jobbyphp/jobby/blob/master/resources/jobby-pdo.php
Generated entity using cli:
doctrine orm:convert-mapping -f --from-database annotation entities/
doctrine orm:generate-entities --generate-annotations="true" entities/