null, 'build_id' => null, 'plugin' => null, 'file' => null, 'line_start' => null, 'line_end' => null, 'severity' => null, 'message' => null, 'create_date' => null, 'hash' => null, 'is_new' => null, ]; /** * @return integer */ public function getId() { return (integer)$this->data['id']; } /** * @param integer $value */ public function setId($value) { $this->validateNotNull('id', $value); $this->validateInt('id', $value); if ($this->data['id'] === $value) { return; } $this->data['id'] = $value; $this->setModified('id'); } /** * @return integer */ public function getBuildId() { return (integer)$this->data['build_id']; } /** * @param integer $value */ public function setBuildId($value) { $this->validateNotNull('build_id', $value); $this->validateInt('build_id', $value); if ($this->data['build_id'] === $value) { return; } $this->data['build_id'] = $value; $this->setModified('build_id'); } /** * @return string */ public function getPlugin() { return $this->data['plugin']; } /** * @param string $value */ public function setPlugin($value) { $this->validateNotNull('plugin', $value); $this->validateString('plugin', $value); if ($this->data['plugin'] === $value) { return; } $this->data['plugin'] = $value; $this->setModified('plugin'); } /** * @return string */ public function getFile() { return $this->data['file']; } /** * @param string $value */ public function setFile($value) { $this->validateString('file', $value); if ($this->data['file'] === $value) { return; } $this->data['file'] = $value; $this->setModified('file'); } /** * @return integer */ public function getLineStart() { return (integer)$this->data['line_start']; } /** * @param integer $value */ public function setLineStart($value) { $this->validateInt('line_start', $value); if ($this->data['line_start'] === $value) { return; } $this->data['line_start'] = $value; $this->setModified('line_start'); } /** * @return integer */ public function getLineEnd() { return (integer)$this->data['line_end']; } /** * @param integer $value */ public function setLineEnd($value) { $this->validateInt('line_end', $value); if ($this->data['line_end'] === $value) { return; } $this->data['line_end'] = $value; $this->setModified('line_end'); } /** * @return integer */ public function getSeverity() { return (integer)$this->data['severity']; } /** * @param integer $value */ public function setSeverity($value) { $this->validateNotNull('severity', $value); $this->validateInt('severity', $value); if ($this->data['severity'] === $value) { return; } $this->data['severity'] = $value; $this->setModified('severity'); } /** * @return string */ public function getMessage() { return $this->data['message']; } /** * @param string $value */ public function setMessage($value) { $this->validateNotNull('message', $value); $this->validateString('message', $value); if ($this->data['message'] === $value) { return; } $this->data['message'] = $value; $this->setModified('message'); } /** * @return \DateTime|null */ public function getCreateDate() { if ($this->data['create_date']) { return new \DateTime($this->data['create_date']); } return null; } /** * @param \DateTime $value */ public function setCreateDate(\DateTime $value) { $this->validateNotNull('create_date', $value); $stringValue = $value->format('Y-m-d H:i:s'); if ($this->data['create_date'] === $stringValue) { return; } $this->data['create_date'] = $stringValue; $this->setModified('create_date'); } /** * @return string */ public function getHash() { return $this->data['hash']; } /** * @param string $value */ public function setHash($value) { $this->validateNotNull('hash', $value); $this->validateString('hash', $value); if ($this->data['hash'] === $value) { return; } $this->data['hash'] = $value; $this->setModified('hash'); } /** * @return boolean */ public function getIsNew() { return (boolean)$this->data['is_new']; } /** * @param boolean $value */ public function setIsNew($value) { $this->validateNotNull('is_new', $value); $this->validateBoolean('is_new', $value); if ($this->data['is_new'] === $value) { return; } $this->data['is_new'] = (integer)$value; $this->setModified('is_new'); } }