Add ForeignServiceId

@param ForeignServiceId ...$foreignServiceId

@return $this
423558
public function addForeignServiceId(ForeignServiceId ...$foreignServiceId)
    {
        foreach ($foreignServiceId as $item) {
            $this->getForeignServicesIds()->add($item);
        }

        return $this;
    }
59853
public function setForeignKey($foreignKey)
    {
        if (!$foreignKey instanceof Attribute && null !== $foreignKey) {
            throw new \InvalidArgumentException('The attribute foreignKey on the class Attribute has to be Attribute or null (' . gettype($foreignKey) . ('object' === gettype($foreignKey) ? ' ' . get_class($foreignKey) : '') . ' given).');
        }

        $this->foreignKey = $foreignKey;

        return $this;
    }
869873
public function addWriteService($service)
	{
		if ($service instanceof Apache_Solr_Service)
		{
			$id = $this->_getServiceId($service->getHost(), $service->getPort(), $service->getPath());

			$this->_writeableServices[$id] = $service;
		}
		else if (is_array($service))
		{
			if (isset($service['host']) && isset($service['port']) && isset($service['path']))
			{
				$id = $this->_getServiceId((string)$service['host'], (int)$service['port'], (string)$service['path']);

				$this->_writeableServices[$id] = $service;
			}
			else
			{
				throw new Apache_Solr_InvalidArgumentException('A Writeable Service description array does not have all required elements of host, port, and path');
			}
		}
	}
668158
public function add( $serviceName, $service, $expectedReturnType = null ) {

		if ( !is_callable( $service ) ) {
			$service = function() use( $service ) {
				return $service;
			};
		}

		$this->containerBuilder->registerCallback( $serviceName, $service );

		if ( $expectedReturnType !== null ) {
			$this->containerBuilder->registerExpectedReturnType( $serviceName, $expectedReturnType );
		}
	}
1233335
public function foreignKey($foreignKey, $references = 'id', $unique = false)
    {
        return $this->joinColumn($foreignKey, $references, $unique);
    }
653258
public function addJoin(Expression $foreign, Statement\Where $on, $joinType = Joins::INNER)
    {
        $this->getJoinStatement()->add($foreign, $on, $joinType);
        
        return $this;
    }
719822
public function setTemplateId(string $templateId = null)
    {
        if (!$this->setHeaderFieldModel('TemplateID', $templateId)) {
            $this->getHeaders()->addTextHeader('TemplateID', $templateId);
        }

        return $this;
    }
449077
public function add($alias, $source = null, $dependencies = [], $options = [])
    {
        if ($source !== null) {
            $asset = $this->_factory->create($alias, $source, $dependencies, $options);
            $this->_collection->add($asset);
        }

        $this->_queued[$alias] = true;

        return $this;
    }
1148850
public static function add_foreign_key($table, $foreign_key)
	{
		if ( ! is_array($foreign_key))
		{
			throw new InvalidArgumentException('Foreign key for add_foreign_key() must be specified as an array');
		}

		$sql = 'ALTER TABLE ';
		$sql .= \DB::quote_identifier(\DB::table_prefix($table, static::$connection)).' ';
		$sql .= 'ADD ';
		$sql .= ltrim(static::process_foreign_keys(array($foreign_key)), ',');

		return \DB::query($sql, \DB::UPDATE)->execute();
	}
205031
public function addForeignKey($referenceTable, $referenceColumns, array $options = [])
    {
        $schema = isset($options['schema']) ? new Schema($options['schema']) : null;

        $foreignKey = new ForeignKey($this, new Table($referenceTable, $schema));
        $foreignKey->setReferencedColumns($referenceColumns);

        if (isset($options['column'])) {
            $foreignKey->setColumns($options['column']);
        } else {
            $foreignKey->setColumns($referenceColumns);
        }
        if (isset($options['update'])) {
            $foreignKey->setUpdateAction($options['update']);
        }
        if (isset($options['delete'])) {
            $foreignKey->setDeleteAction($options['delete']);
        }
        $this->actions[] =  function () use ($foreignKey) {
             return $this->manipulation->create($foreignKey);
        };

        return $this;
    }
1043607
public function addService(Service $service) {
    if (!in_array($service, $this->services, TRUE)) {
      $this->services[] = $service;
      
      if ($service instanceof \Psc\System\LoggerObject && $service->getLogger() instanceof \Psc\System\DispatchingLogger) {
        $this->getLogger()->listenTo($service->getLogger());
      }
    }
    return $this;
  }
852618
private function addServices()
    {
        $publicServices = $privateServices = '';
        $definitions = $this->container->getDefinitions();
        ksort($definitions);
        foreach ($definitions as $id => $definition) {
            if ($definition->isPublic()) {
                $publicServices .= $this->addService($id, $definition);
            } else {
                $privateServices .= $this->addService($id, $definition);
            }
        }

        return $publicServices.$privateServices;
    }
675920
public function setForeignTick($foreignTick)
    {
        if (!is_bool($foreignTick)) {
            throw new \InvalidArgumentException('The attribute foreignTick on the class Attribute has to be boolean (' . gettype($foreignTick) . ('object' === gettype($foreignTick) ? ' ' . get_class($foreignTick) : '') . ' given).');
        }

        $this->foreignTick = $foreignTick;

        return $this;
    }
249481
public function setForeignKeys(array $foreignKeys)
    {
        $this->foreignKeys = array();

        foreach ($foreignKeys as $foreignKey) {
            $this->addForeignKey($foreignKey);
        }
    }
835632
protected function initService($baseUri = null, ServiceInterface $apiService = null)
    {
        if (empty($apiService)) {
            $apiService = new ServiceJson($baseUri);
        }
        
        $this->service = $apiService;
        
        return $this;
    }
989961
public function addReferrer(ForeignKey $fk)
    {
        if ($this->referrers === null) {
            $this->referrers = array();
        }
        $this->referrers[] = $fk;
    }
327618
public function registerFieldType($fieldTypeServiceId, $fieldTypeAlias)
    {
        $container = $this->container;
        $this->fieldTypes[$fieldTypeAlias] = function () use ($container, $fieldTypeServiceId) {
            return $container->get($fieldTypeServiceId);
        };
    }