Esempio n. 1
0
 /**
  * debugInfo PHP 5.6+ magic method
  *
  * @return array
  *
  */
 public function __debugInfo()
 {
     $info = parent::__debugInfo();
     $info['selectors'] = (string) $this->selectors;
     if (!count($info['selectors'])) {
         unset($info['selectors']);
     }
     return $info;
 }
Esempio n. 2
0
 /**
  * Is the given CommentArray identical to this one?
  *
  * @param WireArray $items
  * @param bool|int $strict
  * @return bool
  *
  */
 public function isIdentical(WireArray $items, $strict = true)
 {
     $isIdentical = parent::isIdentical($items, $strict);
     if ($isIdentical && $strict) {
         if ((string) $this->getPage() != (string) $items->getPage()) {
             return false;
         }
         if ((string) $this->getField() != (string) $items->getField()) {
             return false;
         }
     }
     return $isIdentical;
 }