public function append($elements)
    {
        if (!empty($elements)) {
            $elements = is_array($elements) ? $elements : [$elements];

            foreach ($elements as $element) {
                if ($element instanceof Image || $element instanceof Text) {
                    $this->elementList[] = $element;
                }
            }
        }

        return $this;
    }
public function append($elements)
    {
        if (!empty($elements)) {
            $elements = is_array($elements) ? $elements : [$elements];

            foreach ($elements as $element) {
                if ($element instanceof Image || $element instanceof Text) {
                    $this->elementList[] = $element;
                }
            }
        }

        return $this;
    }
public function append ( $ elements ) { if ( ! empty ( $ elements ) ) { $ elements = is_array ( $ elements ) ? $ elements : [ $ elements ] ; foreach ( $ elements as $ element ) { if ( $ element instanceof Image || $ element instanceof Text ) { $ this -> elementList [ ] = $ element ; } } } return $ this ; }
Adds one or more elements to canvas.

@param mixed $elements Single or array of Image, Figure, Text classes.
@access public
@return \GImage\Canvas
Adds one or more elements to canvas .