Skip to content

Commit

Permalink
Merge pull request #376 from ToshY/bug/getter-charactermeta-missing
Browse files Browse the repository at this point in the history
Added getter for CharacterMeta
  • Loading branch information
irfan-dahir authored Dec 7, 2021
2 parents 74209b3 + 7de40c0 commit d28e074
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions src/Model/Character/CharacterListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,44 +45,20 @@ public static function fromParser(CharacterListItemParser $parser): self
return $instance;
}

/**
* @return int
*/
public function getMalId(): int
{
return $this->malId;
}

/**
* @return string
*/
public function getUrl(): string
{
return $this->url;
}

/**
* @return CharacterImageResource
*/
public function getImages(): CharacterImageResource
{
return $this->images;
}

/**
* @return string
*/
public function getName(): string
public function getRole(): string
{
return $this->name;
return $this->role;
}

/**
* @return string
* @return CharacterMeta
*/
public function getRole(): string
public function getCharacter(): CharacterMeta
{
return $this->role;
return $this->character;
}

/**
Expand Down

0 comments on commit d28e074

Please sign in to comment.