src/Charcoal/Source/ExpressionFieldTrait.php
public function setTable($table)
    {
        if ($table === null) {
            $this->table = $table;
            return $this;
        }

        if (!is_string($table)) {
            throw new InvalidArgumentException(
                'Table reference must be a string.'
            );
        }

        if ($table === '') {
            throw new InvalidArgumentException(
                'Table reference can not be empty.'
            );
        }

        $this->table = $table;
        return $this;
    }
public function setTable($table)
    {
        if ($table === null) {
            $this->table = $table;
            return $this;
        }

        if (!is_string($table)) {
            throw new InvalidArgumentException(
                'Table reference must be a string.'
            );
        }

        if ($table === '') {
            throw new InvalidArgumentException(
                'Table reference can not be empty.'
            );
        }

        $this->table = $table;
        return $this;
    }
public function setTable ( $ table ) { if ( $ table === null ) { $ this -> table = $ table ; return $ this ; } if ( ! is_string ( $ table ) ) { throw new InvalidArgumentException ( 'Table reference must be a string.' ) ; } if ( $ table === '' ) { throw new InvalidArgumentException ( 'Table reference can not be empty.' ) ; } $ this -> table = $ table ; return $ this ; }
Set the reference to the table related to the field.

@param  string $table The table name or alias.
@throws InvalidArgumentException If the parameter is not a string.
@return self
Set the reference to the table related to the field .