Ejemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param int   $from   The article number where the range begins.
  * @param int   $to     The article number where the range ends.
  * @param array $format The format of the articles in response.
  */
 public function __construct($from, $to, array $format)
 {
     $this->from = $from;
     $this->to = $to;
     $this->format = array_merge(['number' => false], $format);
     parent::__construct(new \SplFixedArray($this->to - $this->from + 1), true);
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  */
 public function __construct($groups, $subject, $body, $from, $headers)
 {
     $this->groups = $groups;
     $this->subject = $subject;
     $this->body = $body;
     $this->from = $from;
     $this->headers = $headers;
     parent::__construct([]);
 }
Ejemplo n.º 3
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct([]);
 }
Ejemplo n.º 4
0
 /**
  * Constructor.
  *
  * @param string $article The number or msg-id of the article.
  */
 public function __construct($article)
 {
     $this->article = $article;
     parent::__construct([], true);
 }
Ejemplo n.º 5
0
 public function __construct($type, $value)
 {
     $this->type = $type;
     $this->value = $value;
     parent::__construct();
 }
Ejemplo n.º 6
0
 /**
  * Constructor.
  *
  * @param string $group The name of the group.
  */
 public function __construct($group)
 {
     $this->group = $group;
     parent::__construct([]);
 }
Ejemplo n.º 7
0
 /**
  * Constructor.
  *
  * @param string $reference The reference
  */
 public function __construct($reference)
 {
     $this->reference = $reference;
     parent::__construct([]);
 }
Ejemplo n.º 8
0
 /**
  * @param string $keyword
  * @param string $arguments
  */
 public function __construct($keyword = null, $arguments = null)
 {
     $this->keyword = $keyword;
     $this->arguments = $arguments;
     parent::__construct([], true);
 }
Ejemplo n.º 9
0
 /**
  * Constructor.
  *
  * @param string $feature The feature to enable
  */
 public function __construct($feature)
 {
     $this->feature = $feature;
     parent::__construct(false);
 }