for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Muffin\Queries\Snippets;
use Muffin\Snippet;
class From implements Snippet
{
private
$tableName;
public function __construct($table, $alias = null)
if(! $table instanceof TableName)
$table = new TableName($table, $alias);
}
$this->tableName = $table;
public function toString()
return sprintf('FROM %s', $this->tableName->toString());