Skip to content

Instantly share code, notes, and snippets.

@odino
Created May 17, 2011 12:57
Show Gist options
  • Save odino/976419 to your computer and use it in GitHub Desktop.
Save odino/976419 to your computer and use it in GitHub Desktop.
<?php
class Example
{
protected $command = array(
'select' => 'Orient\Query\...\...\Select',
...
...
);
public function __construct(array $commands)
{
$this->commands = array_merge($this->commands, $commands);
}
public function delete($from)
{
$class = $this->getCommandClass($from)
$this->command = new $class($from);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment