3.1.2 - 2020-04-10
- Fixed serialization error when setting a property to NULL when the property's type is abstract.
3.1.1 - 2019-07-24
- Fixed login when targeting R22.
3.1.0 - 2019-04-06
- Additional validation checks for fields
LengthExceptionis thrown when a field's fixed length restriction is not met.MinLengthExceptionis thrown when a field's minimum length restriction is not met.MaxLengthExceptionis thrown when a field's maximum length restriction is not met.MinInclusiveExceptionis thrown when field's value is set below an allowed range.MaxInclusiveExceptionis thrown when field's value is set above an allowed range.PatternExceptionis thrown when a field's value doesn't match a required pattern.
3.0.4 - 2019-03-03
- Fixed issue where the
Validatorwas treating array fields as being set when they were empty.
3.0.3 - 2019-02-23
- Fixed issue where
ChoiceNotSetExceptionwas being thrown when all members are optional and none are set.
3.0.2 - 2019-02-03
- Fixed missing & incorrect return types on traits
- Restored request types that were removed from latest XSD files
3.0.1 - 2019-01-14
- Setters for nillable types now have a default value of NULL to fix an issue with passing NULL to a type-hinted setter.
- Fixed some class names on helper methods' @return annotations.
3.0.0 - 2019-01-13
ValidationExceptionis now thrown if a request does not meet requirements. This has child exceptions that are thrown for each case:FieldNotSetExceptionis thrown when a required field is not set.ChoiceNotSetExceptionis thrown when no fields have been set that are part of a choice.InvalidChoiceExceptionis thrown when multiple fields in a choice have been set instead of just one.
- Enumerated Types are now represented by a class (utilizing php-enum) instead of just being a string.
- Fields set to
NULLno longer are omitted from the generated XML. Instead, they are set as anilvalue in the XML. - Unsetters have been added for each field. If you wish to unset a field after calling it's setter, use its corresponding unsetter.
- Models have been rebuilt off of
Rel_23.0_1.1075XSD files to target BroadWorks Release 23.
2.2.2 - 2018-12-27
- Nillable properties on response objects were incorrectly getting set to an instance of Nil when they shouldn't have been.
2.2.1 - 2018-12-19
TcpTransportwas not sending requests to the server after connecting.
2.2.0 - 2018-12-15
- SSL support for TCP connections.
2.1.2 - 2018-11-22
- Chance of
BadResponseExceptionbeing thrown randomly when using TCP due to not accounting for the newline that follows a response.
2.1.1 - 2018-11-12
- composer.json now suggest soap & socket extensions instead of requiring them. You need at least one.
2.1.0 - 2018-11-04
Nilclass added. Fields that are nillable can have their value set as an instance ofNil.Optionsclass added as the 4th argument forOcipClient's constructor. ThisOptionsclass has two setters:setServerVersionsets the BroadWorks server version. Options areOptions::VERSION_14SP4(default) orOptions::VERSION_22. This impacts the information set on theUserDetailsobject (see below).setSoapClientOptionssets the$optionsargument ofSoapClientif using SOAP.
OcipClient::loginnow returns aUserDetailsobject containing information about the logged in user.OcipClient::getUserDetailsreturns the same object. If using BW release 22, make sure you setOptions::setServerVersiontoOptions::VERSION_22to include reseller details.XmlExceptionexception that can be thrown during serialization or deserialization of XML.
2.0.3 - 2018-11-03
ErrorResponseExceptionwas being thrown during login failure instead ofLoginException.
2.0.2 - 2018-10-07
- Fixed object serialization so it casts values to the their appropriate type.
2.0.1 - 2018-09-20
- Fixed issue with abstract classes not including an xsi:type attribute when converted to XML.
- Fixed issue with XML generation on some versions of PHP not properly setting text elements.
2.0.0 - 2018-07-22
- Instances of
ErrorResponseare no longer returned by request calls. If the server returns anErrorResponse, an instance ofErrorResponseExceptionis now thrown.
1.1.0 - 2018-07-03
- Fixed mistakes in comments and phpdoc annotations caused by errors in source XSD files.
OcipClientnow exposes helper methods for every request object.