Esempio n. 1
0
 public function showIn($contexts)
 {
     if (is_array($contexts)) {
         $this->contexts = new StringList($contexts);
     } elseif ($contexts instanceof StringList) {
         $this->contexts = $contexts;
     } elseif (func_num_args() > 1) {
         $this->contexts = new StringList(func_get_args());
     } elseif (is_string($contexts)) {
         $this->contexts = StringList::fromString($contexts);
     }
     return $this;
 }