/** * 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); }
/** * 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([]); }
/** * Constructor. */ public function __construct() { parent::__construct([]); }
/** * Constructor. * * @param string $article The number or msg-id of the article. */ public function __construct($article) { $this->article = $article; parent::__construct([], true); }
public function __construct($type, $value) { $this->type = $type; $this->value = $value; parent::__construct(); }
/** * Constructor. * * @param string $group The name of the group. */ public function __construct($group) { $this->group = $group; parent::__construct([]); }
/** * Constructor. * * @param string $reference The reference */ public function __construct($reference) { $this->reference = $reference; parent::__construct([]); }
/** * @param string $keyword * @param string $arguments */ public function __construct($keyword = null, $arguments = null) { $this->keyword = $keyword; $this->arguments = $arguments; parent::__construct([], true); }
/** * Constructor. * * @param string $feature The feature to enable */ public function __construct($feature) { $this->feature = $feature; parent::__construct(false); }