public function setEntityUuid(?string $entityUuid)
    {
        if (null !== $entityUuid) {
            if (!preg_match('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i', $entityUuid)) {
                throw new InvalidArgumentException('Entity uuid is not valid.');
            }
        }

        $this->entityUuid = $entityUuid;

        return $this;
    }
public function setEntityUuid(?string $entityUuid)
    {
        if (null !== $entityUuid) {
            if (!preg_match('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i', $entityUuid)) {
                throw new InvalidArgumentException('Entity uuid is not valid.');
            }
        }

        $this->entityUuid = $entityUuid;

        return $this;
    }
public function setEntityUuid ( ? string $ entityUuid ) { if ( null !== $ entityUuid ) { if ( ! preg_match ( '/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i' , $ entityUuid ) ) { throw new InvalidArgumentException ( 'Entity uuid is not valid.' ) ; } } $ this -> entityUuid = $ entityUuid ; return $ this ; }
Set entity uuid

@param string $entityUuid
@return object
@throws \InvalidArgumentException
Set entity uuid