Skip to content

Implement more general use of fluent interfaces in methods #8

@GoogleCodeExporter

Description

@GoogleCodeExporter
I've noticed that you are allowing fluent interfaces when, for example, 
populating the cells in a row, which makes it easy to write code such as:

$row = new Row();
$row->addCell(new Cell("Foo"))
    ->addCell(new Cell(123))
    ->addCell(new Cell(false));

It would be nice if it were possible to also write code like:

$chart = new AreaChart("somechart", $someData);
$chart->setTitle("Chart title)
      ->setLegend($legend)
      ->setIsStacked(true)
      ->setVAxis(new Axis("foobar"));

More a style thing that a core thing.

Tnxs for the great lib, btw.

Original issue reported on code.google.com by jesus.ca...@gmail.com on 14 Aug 2012 at 8:21

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions