RedUNIT\Base\Finding::getColors PHP Method

getColors() private method

Helper for testing findLike.
private getColors ( array $flowers, boolean $noSort = FALSE ) : string
$flowers array beans
$noSort boolean sorting?
return string
    private function getColors($flowers, $noSort = FALSE)
    {
        $colors = array();
        foreach ($flowers as $flower) {
            $colors[] = $flower->color;
        }
        if (!$noSort) {
            sort($colors);
        }
        return implode(',', $colors);
    }