/** * Upstream constructor. * @param Param $upstream * @param Directive[] $directives */ public function __construct(Param $upstream, array $directives = []) { $this->upstream = $upstream; parent::__construct('upstream', $directives); }
/** * Events constructor. * @param Directive[] $directives */ public function __construct(array $directives = []) { parent::__construct('events', $directives); }
/** * Location constructor. * @param Param $location * @param Param $match * @param array $directives */ public function __construct(Param $location, Param $match = null, array $directives = []) { $this->location = $location; $this->match = $match; parent::__construct('location', $directives); }