Skip to content

Commit

Permalink
administration units: introduce getCategory() getter and deprecated i…
Browse files Browse the repository at this point in the history
…s*()
  • Loading branch information
Daniel Kurowski committed Jan 5, 2024
1 parent dacbe1f commit ccac76d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/AdministrationUnit/Response/AdministrationUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,24 +171,34 @@ public function getManager(): ?string
}


public function getCategory(): Category
{
return $this->category;
}


/** @deprecated use {@see self::getCategory()} instead */
public function isClub(): bool
{
return $this->category->equals(Category::CLUB());
}


/** @deprecated use {@see self::getCategory()} instead */
public function isBaseUnit(): bool
{
return $this->category->equals(Category::BASIC_SECTION());
}


/** @deprecated use {@see self::getCategory()} instead */
public function isRegionalUnit(): bool
{
return $this->category->equals(Category::REGIONAL_CENTER());
}


/** @deprecated use {@see self::getCategory()} instead */
public function isOffice(): bool
{
return $this->category->equals(Category::HEADQUARTER());
Expand Down

0 comments on commit ccac76d

Please sign in to comment.