Pop\Db\Sql::hasAlias PHP Method

hasAlias() public method

Determine if the Sql object has an alias name
public hasAlias ( ) : boolean
return boolean
    public function hasAlias()
    {
        return $this->alias != null;
    }

Usage Example

Exemplo n.º 1
0
 public function testHasAlias()
 {
     $s = new Sql(Db::factory('Sqlite', array('database' => __DIR__ . '/../tmp/test.sqlite')), 'users', 'user_data');
     $this->assertTrue($s->hasAlias());
 }