Skip to content

Commit

Permalink
updated CharacterListItem with getter for CharacterMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshY committed Dec 6, 2021
1 parent 74209b3 commit 7de40c0
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 7de40c0

Please sign in to comment.