1
0
Fork 0

Make methods chainable

pull/11922/head
Jordi Boggiano 2024-04-02 17:40:35 +02:00
parent 9ced107af2
commit dd18a5fe55
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 8 additions and 2 deletions

View File

@ -1111,20 +1111,26 @@ class Installer
* Packages of those types are ignored, by default php-ext and php-ext-zend are ignored * Packages of those types are ignored, by default php-ext and php-ext-zend are ignored
* *
* @param list<string> $types * @param list<string> $types
* @return $this
*/ */
public function setIgnoredTypes(array $types): void public function setIgnoredTypes(array $types): self
{ {
$this->ignoredTypes = $types; $this->ignoredTypes = $types;
return $this;
} }
/** /**
* Only packages of those types are allowed if set to non-null * Only packages of those types are allowed if set to non-null
* *
* @param list<string>|null $types * @param list<string>|null $types
* @return $this
*/ */
public function setAllowedTypes(?array $types): void public function setAllowedTypes(?array $types): self
{ {
$this->allowedTypes = $types; $this->allowedTypes = $types;
return $this;
} }
/** /**