mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 19:56:13 +01:00
[CLEANUP] boolean -> bool, integer -> int
This commit is contained in:
parent
5a33bc2a85
commit
f3b26e35ee
3 changed files with 13 additions and 13 deletions
|
@ -21,20 +21,20 @@ namespace OliverKlee\Tea\Domain\Model;
|
||||||
*/
|
*/
|
||||||
class Addition extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject {
|
class Addition extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject {
|
||||||
/**
|
/**
|
||||||
* @var \string
|
* @var string
|
||||||
* @validate NotEmpty
|
* @validate NotEmpty
|
||||||
*/
|
*/
|
||||||
protected $title = '';
|
protected $title = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return \string $title
|
* @return string $title
|
||||||
*/
|
*/
|
||||||
public function getTitle() {
|
public function getTitle() {
|
||||||
return $this->title;
|
return $this->title;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \string $title
|
* @param string $title
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -21,25 +21,25 @@ namespace OliverKlee\Tea\Domain\Model;
|
||||||
*/
|
*/
|
||||||
class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
/**
|
/**
|
||||||
* @var \string
|
* @var string
|
||||||
* @validate NotEmpty
|
* @validate NotEmpty
|
||||||
*/
|
*/
|
||||||
protected $title = '';
|
protected $title = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var boolean
|
* @var bool
|
||||||
*/
|
*/
|
||||||
protected $caffeinated = FALSE;
|
protected $caffeinated = FALSE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return \string $title
|
* @return string $title
|
||||||
*/
|
*/
|
||||||
public function getTitle() {
|
public function getTitle() {
|
||||||
return $this->title;
|
return $this->title;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \string $title
|
* @param string $title
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
@ -48,14 +48,14 @@ class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return boolean $caffeinated
|
* @return bool $caffeinated
|
||||||
*/
|
*/
|
||||||
public function getCaffeinated() {
|
public function getCaffeinated() {
|
||||||
return $this->caffeinated;
|
return $this->caffeinated;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param boolean $caffeinated
|
* @param bool $caffeinated
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
@ -64,7 +64,7 @@ class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isCaffeinated() {
|
public function isCaffeinated() {
|
||||||
return $this->getCaffeinated();
|
return $this->getCaffeinated();
|
||||||
|
|
|
@ -26,7 +26,7 @@ class Testimonial extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
protected $dateOfPosting = NULL;
|
protected $dateOfPosting = NULL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var integer
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $numberOfConsumedCups = 0;
|
protected $numberOfConsumedCups = 0;
|
||||||
|
|
||||||
|
@ -52,14 +52,14 @@ class Testimonial extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return integer $numberOfConsumedCups
|
* @return int $numberOfConsumedCups
|
||||||
*/
|
*/
|
||||||
public function getNumberOfConsumedCups() {
|
public function getNumberOfConsumedCups() {
|
||||||
return $this->numberOfConsumedCups;
|
return $this->numberOfConsumedCups;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param integer $numberOfConsumedCups
|
* @param int $numberOfConsumedCups
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue