Skip to content

Instantly share code, notes, and snippets.

@adrienbrault
Created May 25, 2012 18:49
Show Gist options
  • Select an option

  • Save adrienbrault/2789797 to your computer and use it in GitHub Desktop.

Select an option

Save adrienbrault/2789797 to your computer and use it in GitHub Desktop.
TimelineBundle suggestions
// This feels weird, usually create returns a new instance or something like that
$entry = new TimelineAction();
$entry->create($chuckNorrisObject, 'control', 'The world');
// This would be better
$entry = TimelineAction::create($chuckNorrisObject, 'control', 'The world');
// Or maybe something more like that
$entry = new TimelineAction();
$entry->configure/setup/fill/etc...($chuckNorrisObject, 'control', 'The world');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment