public function getArea($name)
    {
        foreach ($this->areas as $area) {
            /** @var Area $area */
            if ($area->getName() == $name) {
                return $area;
            }
        }

        return;
    }
public function getArea($name)
    {
        foreach ($this->areas as $area) {
            /** @var Area $area */
            if ($area->getName() == $name) {
                return $area;
            }
        }

        return;
    }
public function getArea ( $ name ) { foreach ( $ this -> areas as $ area ) { /** @var Area $area */ if ( $ area -> getName ( ) == $ name ) { return $ area ; } } return ; }
Get area by name

@author Vincent Chalamon <vincentchalamon@gmail.com>

@param string $name Area name

@return Area|null
Get area by name