123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- /**
- * Review statuses collection
- *
- * @author Magento Core Team <core@magentocommerce.com>
- */
- namespace Magento\Review\Model\ResourceModel\Review\Status;
- class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
- {
- /**
- * Review status table
- *
- * @var string
- */
- protected $_reviewStatusTable;
- /**
- * Collection model initialization
- *
- * @return void
- */
- protected function _construct()
- {
- $this->_init(
- \Magento\Review\Model\Review\Status::class,
- \Magento\Review\Model\ResourceModel\Review\Status::class
- );
- }
- /**
- * Convert items array to array for select options
- *
- * @return array
- */
- public function toOptionArray()
- {
- return parent::_toOptionArray('status_id', 'status_code');
- }
- }
|