Skip to content
Snippets Groups Projects
Select Git revision
  • 785de67d0c1069138c9b2690b6cf7bf554cafa4e
  • develop default protected
  • 1.3 protected
  • 1.1
  • 1.2 protected
  • 1.0
  • 13-export-cli-command
  • 1.7.0
  • 1.6.0
  • 1.5.0
  • 1.4.3
  • 1.4.2
  • 1.4.1
  • 1.4.0
  • 1.3.7
  • 1.3.6
  • 1.3.5
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.1.4
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.0.6
27 results

BlockEntry.php

Blame
  • BlockEntry.php 1.81 KiB
    <?php
    declare(strict_types=1);
    
    namespace Firegento\ContentProvisioning\Model;
    
    use Firegento\ContentProvisioning\Api\Data\BlockEntryInterface;
    use Magento\Cms\Model\Block;
    
    class BlockEntry extends Block implements BlockEntryInterface
    {
        /**
         * @return string
         */
        public function getKey()
        {
            return (string)$this->getData(BlockEntryInterface::KEY);
        }
    
        /**
         * @param string $key
         */
        public function setKey($key)
        {
            $this->setData(BlockEntryInterface::KEY, $key);
        }
    
        /**
         * @return bool
         */
        public function isMaintained()
        {
            return (bool)$this->getData(BlockEntryInterface::IS_MAINTAINED);
        }
    
        /**
         * @param bool $isMaintained
         */
        public function setIsMaintained($isMaintained)
        {
            $this->setData(BlockEntryInterface::IS_MAINTAINED, $isMaintained);
        }
    
        /**
         * @return array
         */
        public function getStores()
        {
            return (array)$this->getData(BlockEntryInterface::STORES);
        }
    
        /**
         * @param array $stores
         */
        public function setStores(array $stores)
        {
            $this->setData(BlockEntryInterface::STORES, $stores);
        }
    
        /**
         * @return string
         */
        public function getMediaDirectory()
        {
            return (string)$this->getData(BlockEntryInterface::MEDIA_DIRECTORY);
        }
    
        /**
         * @param string $path
         */
        public function setMediaDirectory($path)
        {
            $this->setData(BlockEntryInterface::MEDIA_DIRECTORY, $path);
        }
    
        /**
         * @return array
         */
        public function getMediaFiles()
        {
            return (array)$this->getData(BlockEntryInterface::MEDIA_FILES);
        }
    
        /**
         * @param array $files
         */
        public function setMediaFiles(array $files)
        {
            $this->setData(BlockEntryInterface::MEDIA_FILES, $files);
        }
    }