src/Endpoint/PartitionEndpointProvider.php
public function getPartitionByName($name)
    {
        foreach ($this->partitions as $partition) {
            if ($name === $partition->getName()) {
                return $partition;
            }
        }
    }
public function getPartitionByName($name)
    {
        foreach ($this->partitions as $partition) {
            if ($name === $partition->getName()) {
                return $partition;
            }
        }
    }
public function getPartitionByName ( $ name ) { foreach ( $ this -> partitions as $ partition ) { if ( $ name === $ partition -> getName ( ) ) { return $ partition ; } } }
Returns the partition with the provided name or null if no partition with
the provided name can be found.

@param string $name

@return Partition|null
Returns the partition with the provided name or null if no partition with the provided name can be found .