Inheritance: extends Guzzle\Common\Collection, implements Crummy\Phlack\Common\Encodable
Exemple #1
0
 /**
  * @param mixed $data
  */
 public function __construct($data = [])
 {
     if (!is_array($data) && !empty($data)) {
         $data = ['text' => $data];
     }
     parent::__construct($data);
 }