public function getElementById($id)
    {
        $id = $this->getTrueId($id);

        if ($id === false) {
            // Throw something
            return;
        }

        return $this->objects[$id];
    }
public function getElementById($id)
    {
        $id = $this->getTrueId($id);

        if ($id === false) {
            // Throw something
            return;
        }

        return $this->objects[$id];
    }
public function getElementById ( $ id ) { $ id = $ this -> getTrueId ( $ id ) ; if ( $ id === false ) { // Throw something return ; } return $ this -> objects [ $ id ] ; }
Get an element by its ID

@param  string|int $id
@return ElementInterface
Get an element by its ID