protected function addForeignConstraint(&$properties, ForeignConstraint $constraint)
    {
        $properties .= PHP_EOL . sprintf("%s('%s')", $this->getPropertyBase('foreign'), $constraint->column);

        return $this;
    }
protected function addForeignConstraint(&$properties, ForeignConstraint $constraint)
    {
        $properties .= PHP_EOL . sprintf("%s('%s')", $this->getPropertyBase('foreign'), $constraint->column);

        return $this;
    }
protected function addForeignConstraint ( & $ properties , ForeignConstraint $ constraint ) { $ properties .= PHP_EOL . sprintf ( "%s('%s')" , $ this -> getPropertyBase ( 'foreign' ) , $ constraint -> column ) ; return $ this ; }
Adds 'foreign' eloquent method to a given properties.

@param string $properties
@param CrestApps\CodeGenerator\Models\ForeignConstraint $constraint

@return $this
Adds foreign eloquent method to a given properties .