Skip to content

Instantly share code, notes, and snippets.

@Skyl0
Created March 24, 2015 12:21
Show Gist options
  • Save Skyl0/8f6c11d4025b8db6c56f to your computer and use it in GitHub Desktop.
Save Skyl0/8f6c11d4025b8db6c56f to your computer and use it in GitHub Desktop.
Fahrzeug Class Model
<?php
namespace Y7group\Y7Fahrzeugdatenbank\Domain\Model;
/**
* Fahrzeug
*/
class Fahrzeug extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
/**
* name
*
* @var string
* @validate NotEmpty
*/
protected $name = '';
/**
* beschreibung
*
* @var string
* @validate NotEmpty
*/
protected $beschreibung = '';
/**
* bild
*
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
* @validate NotEmpty
*/
protected $bild = NULL;
/**
* datenblatt
*
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
*/
protected $datenblatt = NULL;
/**
* n Fahrzeuge haben 1 Kategorie
*
* @var \Y7group\Y7Fahrzeugdatenbank\Domain\Model\FzKategorie
*/
protected $kategorie = NULL;
/**
* Returns the name
*
* @return string $name
*/
public function getName() {
return $this->name;
}
/**
* Sets the name
*
* @param string $name
* @return void
*/
public function setName($name) {
$this->name = $name;
}
/**
* Returns the beschreibung
*
* @return string $beschreibung
*/
public function getBeschreibung() {
return $this->beschreibung;
}
/**
* Sets the beschreibung
*
* @param string $beschreibung
* @return void
*/
public function setBeschreibung($beschreibung) {
$this->beschreibung = $beschreibung;
}
/**
* Returns the bild
*
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $bild
*/
public function getBild() {
return $this->bild;
}
/**
* Sets the bild
*
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $bild
* @return void
*/
public function setBild(\TYPO3\CMS\Extbase\Domain\Model\FileReference $bild) {
$this->bild = $bild;
}
/**
* Returns the datenblatt
*
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $datenblatt
*/
public function getDatenblatt() {
return $this->datenblatt;
}
/**
* Sets the datenblatt
*
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $datenblatt
* @return void
*/
public function setDatenblatt(\TYPO3\CMS\Extbase\Domain\Model\FileReference $datenblatt) {
$this->datenblatt = $datenblatt;
}
/**
* Returns the kategorie
*
* @return \Y7group\Y7Fahrzeugdatenbank\Domain\Model\FzKategorie $kategorie
*/
public function getKategorie() {
return $this->kategorie;
}
/**
* Sets the kategorie
*
* @param \Y7group\Y7Fahrzeugdatenbank\Domain\Model\FzKategorie $kategorie
* @return void
*/
public function setKategorie(\Y7group\Y7Fahrzeugdatenbank\Domain\Model\FzKategorie $kategorie) {
$this->kategorie = $kategorie;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment