110 lines
2.0 KiB
PHP
110 lines
2.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @file classes/reviewForm/ReviewFormResponse.php
|
|
*
|
|
* Copyright (c) 2014-2021 Simon Fraser University
|
|
* Copyright (c) 2000-2021 John Willinsky
|
|
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
|
*
|
|
* @class ReviewFormResponse
|
|
*
|
|
* @ingroup reviewForm
|
|
*
|
|
* @see ReviewFormResponseDAO
|
|
*
|
|
* @brief Basic class describing a review form response.
|
|
*
|
|
*/
|
|
|
|
namespace PKP\reviewForm;
|
|
|
|
class ReviewFormResponse extends \PKP\core\DataObject
|
|
{
|
|
//
|
|
// Get/set methods
|
|
//
|
|
|
|
/**
|
|
* Get the review ID.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getReviewId()
|
|
{
|
|
return $this->getData('reviewId');
|
|
}
|
|
|
|
/**
|
|
* Set the review ID.
|
|
*
|
|
* @param int $reviewId
|
|
*/
|
|
public function setReviewId($reviewId)
|
|
{
|
|
$this->setData('reviewId', $reviewId);
|
|
}
|
|
|
|
/**
|
|
* Get ID of review form element.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getReviewFormElementId()
|
|
{
|
|
return $this->getData('reviewFormElementId');
|
|
}
|
|
|
|
/**
|
|
* Set ID of review form element.
|
|
*
|
|
* @param int $reviewFormElementId
|
|
*/
|
|
public function setReviewFormElementId($reviewFormElementId)
|
|
{
|
|
$this->setData('reviewFormElementId', $reviewFormElementId);
|
|
}
|
|
|
|
/**
|
|
* Get response value.
|
|
*
|
|
*/
|
|
public function getValue()
|
|
{
|
|
return $this->getData('value');
|
|
}
|
|
|
|
/**
|
|
* Set response value.
|
|
*
|
|
*/
|
|
public function setValue($value)
|
|
{
|
|
$this->setData('value', $value);
|
|
}
|
|
|
|
/**
|
|
* Get response type.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getResponseType()
|
|
{
|
|
return $this->getData('type');
|
|
}
|
|
|
|
/**
|
|
* Set response type.
|
|
*
|
|
* @param string $type
|
|
*/
|
|
public function setResponseType($type)
|
|
{
|
|
$this->setData('type', $type);
|
|
}
|
|
}
|
|
|
|
if (!PKP_STRICT_MODE) {
|
|
class_alias('\PKP\reviewForm\ReviewFormResponse', '\ReviewFormResponse');
|
|
}
|