init
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Catalog\Model;
|
||||
|
||||
use Magento\Framework\Model\AbstractModel;
|
||||
use Stemcell\Catalog\Api\Data\SpeciesInterface;
|
||||
|
||||
class Species extends AbstractModel implements SpeciesInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function _construct()
|
||||
{
|
||||
$this->_init(\Stemcell\Catalog\Model\ResourceModel\Species::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getSpeciesId()
|
||||
{
|
||||
return $this->getData(self::SPECIES_ID);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getSpeciesName()
|
||||
{
|
||||
return $this->getData(self::SPECIES_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function setSpeciesName($speciesName)
|
||||
{
|
||||
return $this->setData(self::SPECIES_NAME, $speciesName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user