mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 23:26:11 +01:00

[CLEANUP] boolean -> bool, integer -> int

This commit is contained in:
Oliver Klee 2014-12-14 16:17:44 +01:00
parent 5a33bc2a85
commit f3b26e35ee
3 changed files with 13 additions and 13 deletions

View file

@ -21,20 +21,20 @@ namespace OliverKlee\Tea\Domain\Model;
*/
class Addition extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject {
/**
* @var \string
* @var string
* @validate NotEmpty
*/
protected $title = '';
/**
* @return \string $title
* @return string $title
*/
public function getTitle() {
return $this->title;
}
/**
* @param \string $title
* @param string $title
*
* @return void
*/

View file

@ -21,25 +21,25 @@ namespace OliverKlee\Tea\Domain\Model;
*/
class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
/**
* @var \string
* @var string
* @validate NotEmpty
*/
protected $title = '';
/**
* @var boolean
* @var bool
*/
protected $caffeinated = FALSE;
/**
* @return \string $title
* @return string $title
*/
public function getTitle() {
return $this->title;
}
/**
* @param \string $title
* @param string $title
*
* @return void
*/
@ -48,14 +48,14 @@ class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
}
/**
* @return boolean $caffeinated
* @return bool $caffeinated
*/
public function getCaffeinated() {
return $this->caffeinated;
}
/**
* @param boolean $caffeinated
* @param bool $caffeinated
*
* @return void
*/
@ -64,7 +64,7 @@ class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
}
/**
* @return boolean
* @return bool
*/
public function isCaffeinated() {
return $this->getCaffeinated();

View file

@ -26,7 +26,7 @@ class Testimonial extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
protected $dateOfPosting = NULL;
/**
* @var integer
* @var int
*/
protected $numberOfConsumedCups = 0;
@ -52,14 +52,14 @@ class Testimonial extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
}
/**
* @return integer $numberOfConsumedCups
* @return int $numberOfConsumedCups
*/
public function getNumberOfConsumedCups() {
return $this->numberOfConsumedCups;
}
/**
* @param integer $numberOfConsumedCups
* @param int $numberOfConsumedCups
*
* @return void
*/