Exemple #1
0
 public function __construct($mediaType, array $directives = [])
 {
     $this->mediaType = new MediaType($mediaType);
     Directives::mapDirectives($this, $directives);
 }
Exemple #2
0
 public function __construct($name, $value = NULL, array $directives = [])
 {
     $this->name = trim($name);
     $this->value = $value;
     Directives::mapDirectives($this, $directives);
 }