src/ClearSaleID/Entity/Request/Passenger.php
public function setLegalDocumentType( $legalDocumentType )
    {
        if (!in_array( intval( $legalDocumentType ), $this->documentTypes )) {
            throw new InvalidArgumentException( sprintf( 'Invalid document type (%s)', $legalDocumentType ) );
        }

        $this->legalDocumentType = $legalDocumentType;

        return $this;
    }
public function setLegalDocumentType( $legalDocumentType )
    {
        if (!in_array( intval( $legalDocumentType ), $this->documentTypes )) {
            throw new InvalidArgumentException( sprintf( 'Invalid document type (%s)', $legalDocumentType ) );
        }

        $this->legalDocumentType = $legalDocumentType;

        return $this;
    }
@param  int $legalDocumentType

@return $this