Skip to content

Commit

Permalink
Added getParts() method
Browse files Browse the repository at this point in the history
  • Loading branch information
acelot committed Oct 23, 2018
1 parent 700f346 commit 685271e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/SearchSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ public function __construct(PartInterface ...$parts)
}
}

/**
* @return PartInterface[]
*/
public function getParts(): array
{
return array_values($this->parts);
}

/**
* @param PartInterface ...$parts
*
Expand Down

0 comments on commit 685271e

Please sign in to comment.