Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Boolean.php
Go to the documentation of this file.
1 <?php
24 #require_once 'Zend/Pdf/Element.php';
25 
26 
36 {
42  public $value;
43 
44 
51  public function __construct($val)
52  {
53  if (! is_bool($val)) {
54  #require_once 'Zend/Pdf/Exception.php';
55  throw new Zend_Pdf_Exception('Argument must be boolean.');
56  }
57 
58  $this->value = $val;
59  }
60 
61 
67  public function getType()
68  {
70  }
71 
72 
79  public function toString($factory = null)
80  {
81  return $this->value ? 'true' : 'false';
82  }
83 }
const TYPE_BOOL
Definition: Element.php:32
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
toString($factory=null)
Definition: Boolean.php:79