Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
File.php
Go to the documentation of this file.
1 <?php
26 #require_once 'Zend/Mail/Part/File.php';
27 
31 #require_once 'Zend/Mail/Message/Interface.php';
32 
40 {
45  protected $_flags = array();
46 
56  public function __construct(array $params)
57  {
58  if (!empty($params['flags'])) {
59  // set key and value to the same value for easy lookup
60  $this->_flags = array_combine($params['flags'], $params['flags']);
61  }
62 
63  parent::__construct($params);
64  }
65 
71  public function getTopLines()
72  {
73  return $this->_topLines;
74  }
75 
82  public function hasFlag($flag)
83  {
84  return isset($this->_flags[$flag]);
85  }
86 
92  public function getFlags()
93  {
94  return $this->_flags;
95  }
96 }
__construct(array $params)
Definition: File.php:56
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18