is_full; } /** * When this property is set, only one part (but many instock) is allowed to be stored in this store location. * * @return bool */ public function isOnlySinglePart(): bool { return $this->only_single_part; } /** * @return Storelocation */ public function setOnlySinglePart(bool $only_single_part): self { $this->only_single_part = $only_single_part; return $this; } /** * When this property is set, it is only possible to increase the instock of parts, that are already stored here. * * @return bool */ public function isLimitToExistingParts(): bool { return $this->limit_to_existing_parts; } /** * @return Storelocation */ public function setLimitToExistingParts(bool $limit_to_existing_parts): self { $this->limit_to_existing_parts = $limit_to_existing_parts; return $this; } /** * @return MeasurementUnit|null */ public function getStorageType(): ?MeasurementUnit { return $this->storage_type; } /** * @return Storelocation */ public function setStorageType(?MeasurementUnit $storage_type): self { $this->storage_type = $storage_type; return $this; } /******************************************************************************** * * Setters * *********************************************************************************/ /** * Change the "is full" attribute of this storelocation. * * "is_full" = true means that there is no more space in this storelocation. * This attribute is only for information, it has no effect. * * @param bool $new_is_full * true means that the storelocation is full * * false means that the storelocation isn't full * * @return Storelocation */ public function setIsFull(bool $new_is_full): self { $this->is_full = $new_is_full; return $this; } /** * Returns the ID as an string, defined by the element class. * This should have a form like P000014, for a part with ID 14. * * @return string The ID as a string; */ public function getIDString(): string { return 'L'.sprintf('%06d', $this->getID()); } }