protected function addOnDeleteConstraint(&$properties, ForeignConstraint $constraint)
    {
        if ($constraint->hasDeleteAction()) {
            $properties .= $this->getPropertyBaseSpace(18, true) . sprintf("->onDelete('%s')", $constraint->onDelete);
        }

        return $this;
    }
protected function addOnDeleteConstraint(&$properties, ForeignConstraint $constraint)
    {
        if ($constraint->hasDeleteAction()) {
            $properties .= $this->getPropertyBaseSpace(18, true) . sprintf("->onDelete('%s')", $constraint->onDelete);
        }

        return $this;
    }
protected function addOnDeleteConstraint ( & $ properties , ForeignConstraint $ constraint ) { if ( $ constraint -> hasDeleteAction ( ) ) { $ properties .= $ this -> getPropertyBaseSpace ( 18 , true ) . sprintf ( "->onDelete('%s')" , $ constraint -> onDelete ) ; } return $ this ; }
Adds 'onDelete' eloquent method to a given properties.

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

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