public function getComponent (string $key)
    {
        $components = $this->getComponents();

        return array_key_exists($key, $components)
            ? $components[$key]
            : null;
    }
public function getComponent (string $key)
    {
        $components = $this->getComponents();

        return array_key_exists($key, $components)
            ? $components[$key]
            : null;
    }
public function getComponent ( string $ key ) { $ components = $ this -> getComponents ( ) ; return array_key_exists ( $ key , $ components ) ? $ components [ $ key ] : null ; }
Returns a single component by key

@param string $key

@return Component|null
Returns a single component by key