Set info of holder.

@param string $fullname
@param int    $taxDocument

@return $this
326583
public function setHolder($fullname, $taxDocument)
    {
        $this->data->transferInstrument->bankAccount->holder->fullname = $fullname;
        $this->data->transferInstrument->bankAccount->holder->taxDocument->type = self::TYPE_HOLD;
        $this->data->transferInstrument->bankAccount->holder->taxDocument->number = $taxDocument;

        return $this;
    }
613611
private function setCreditCardHolder(Holder $holder)
    {
        $birthdate = $holder->getBirthDate();
        if ($birthdate instanceof \DateTime) {
            $birthdate = $birthdate->format('Y-m-d');
        }
        $this->data->fundingInstrument->creditCard->holder = new stdClass();
        $this->data->fundingInstrument->creditCard->holder->fullname = $holder->getFullname();
        $this->data->fundingInstrument->creditCard->holder->birthdate = $birthdate;
        $this->data->fundingInstrument->creditCard->holder->taxDocument = new stdClass();
        $this->data->fundingInstrument->creditCard->holder->taxDocument->type = $holder->getTaxDocumentType();
        $this->data->fundingInstrument->creditCard->holder->taxDocument->number = $holder->getTaxDocumentNumber();
        $this->data->fundingInstrument->creditCard->holder->phone = new stdClass();
        $this->data->fundingInstrument->creditCard->holder->phone->countryCode = $holder->getPhoneCountryCode();
        $this->data->fundingInstrument->creditCard->holder->phone->areaCode = $holder->getPhoneAreaCode();
        $this->data->fundingInstrument->creditCard->holder->phone->number = $holder->getPhoneNumber();
        $this->data->fundingInstrument->creditCard->holder->billingAddress = $holder->getBillingAddress();
    }
919630
public function setHolder($fullname, $number, $type)
    {
        $this->data->holder->fullname = $fullname;

        $this->data->holder->taxDocument->type = $type;
        $this->data->holder->taxDocument->number = $number;

        return $this;
    }
548924
public function setDocumentType($document_type)
    {
        $allowed_values = $this->getDocumentTypeAllowableValues();
        if (!in_array($document_type, $allowed_values)) {
            throw new \InvalidArgumentException(
                sprintf(
                    "Invalid value for 'document_type', must be one of '%s'",
                    implode("', '", $allowed_values)
                )
            );
        }
        $this->container['document_type'] = $document_type;

        return $this;
    }
844116
public function setDocumentInfo(\AgentSIB\Diadoc\Api\Proto\Documents\Document $value = null)
    {
        $this->DocumentInfo = $value;
    }
437349
public function setFullName($name) {
		$fullName = new Text($name);

		$this->fullName = $name;
		$this->name = $fullName->substring($fullName->indexOf('/') + 1)->toString();
		$this->vendor = $fullName->substring(0, $fullName->indexOf('/'))->toString();

		return $this;
	}
610685
public function setInvoiceInfo(\AgentSIB\Diadoc\Api\Proto\Docflow\InvoiceDocumentInfo $value = null)
    {
        $this->InvoiceInfo = $value;
    }
988465
private void writeDocument(String fullDocument, String filename) {
		// create output file handle
		File outFile = new File(mOutputDir, filename+".xml"); 
		
		BufferedWriter bw = null;
		try {
			// create a buffered writer for the output file
			bw = new BufferedWriter(new FileWriter(outFile));
			bw.append(fullDocument);
			
		} catch (IOException e) { // something went wrong with the bufferedwriter
			e.printStackTrace();
			Logger.printError(component, "File "+outFile.getAbsolutePath()+" could not be written.");
		} finally { // clean up for the bufferedwriter
			try {
				bw.close();
			} catch(IOException e) {
				e.printStackTrace();
				Logger.printError(component, "File "+outFile.getAbsolutePath()+" could not be closed.");
			}
		}
	}
1334920
public function setInvoiceTax(\Core\Entity\InvoiceTax $invoice_tax = null) {
        $this->invoice_tax = $invoice_tax;

        return $this;
    }
1371909
public function set($name, $value, $expires = null)
    {
        $name = $this->getFullName($name);

        if (!is_array($value)) {
            $value = ['value' => (string) $value];
        }

        if (isset($expires)) {
            $value['expires'] = $expires;
        }

        parent::set($name, $value);

        return $this;
    }
934117
public function setDocumentType(\Core\Entity\DocumentType $documentType = null) {
        $this->documentType = $documentType;

        return $this;
    }
514599
public function setDocblock($doc) {
		if (is_string($doc)) {
			$doc = trim($doc);
			$doc = new Docblock($doc);
		}
		$this->docblock = $doc;

		return $this;
	}
790970
public function setTaxAmount($taxAmount)
	{
		$this->validateInputIsDouble(Request::ATTRIBUTE_TAX_AMOUNT, $taxAmount);

		$this->taxAmount = $taxAmount;

		return $this;
	}
116203
public function setFullQualifiedNamespace($fullQualifiedNamespace) {
        if (empty($this->class) && empty($this->namespace)) {
            $extracted       = $this->extractNamespace($fullQualifiedNamespace);
            $this->class     = $extracted['class'];
            $this->namespace = $extracted['namespace'];
        }


        $this->fullQualifiedNamespace = $fullQualifiedNamespace;
    }
43260
public function setNames($firstName, $lastName, $fullName)
    {
        $names = [0 => '', 1 => ''];
        if (!empty($fullName)) {
            $this->fullName = trim($fullName);
            $names = preg_split("/[\s]+/", $this->fullName, 2);
        }
        if (!empty($firstName)) {
            $this->firstName = trim($firstName);
            $names[0] = $this->firstName;
        } else if (!empty($names[0])) {
            $this->firstName = $names[0];
        } else {
            $this->firstName = 'User';
        }
        if (!empty($lastName)) {
            $this->lastName = trim($lastName);
            $names[1] = $this->lastName;
        } else if (!empty($names[1])) {
            $this->lastName = $names[1];
        } else {
            $this->lastName = $this->id;
        }
        if (empty($this->fullName)) {
            $this->fullName = "{$this->firstName} {$this->lastName}";
        }
    }
668426
public function getEntity($full_name)
    {
        if ( !array_key_exists($full_name, $this->entities) ) {
            $filePath = $this->getCacheFilePath(Util::toFileName($full_name, '.dat'));
            if ( $this->fs->exists($filePath) === false ) {
                return null;
            }
            $file = $this->fs->get($filePath);
            /** @var File $file */
            $file = $this->entities[ $full_name ] = unserialize($file);
            $file->getEntity();
        }
        return $this->entities[ $full_name ];
    }
157625
public function setDocumentFile(File $documentFile = null)
    {
        $this->documentFile = $documentFile;

        if ($documentFile) {
            // It is required that at least one field changes if you are using doctrine
            // otherwise the event listeners won't be called and the file is lost
            $this->modified = new \DateTimeImmutable();
        }

        return $this;
    }