api/MarkLogic/MLPHP/SearchResults.php
public function getFacet($name)
    {
        $result = null;
        foreach ($this->facets as $facet) {
            if ($facet->getName() === $name) {
                $result = $facet;
            }
        }
        return $result;
    }
public function getFacet($name)
    {
        $result = null;
        foreach ($this->facets as $facet) {
            if ($facet->getName() === $name) {
                $result = $facet;
            }
        }
        return $result;
    }
Get a facet by its name.

@return array Array of Facet objects.