for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PhpCfdi\SatCatalogosPopulate\Origins;
use PhpCfdi\SatCatalogosPopulate\AbstractCollection;
/**
* @extends AbstractCollection<Review>
*/
class Reviews extends AbstractCollection
{
public function isValidMember(mixed $member): bool
return ($member instanceof Review);
}
public function filterStatus(ReviewStatus $status): self
return new self(array_filter($this->all(), fn (Review $review): bool => $status === $review->status()));