Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

ministryofjustice/opg-core-public-domain-model

Repository files navigation

Build Status Total Downloads Coverage Status Dependency Status Scrutinizer Quality Score

OPG Core Domain Model

A Composer/Packagist library of the model classes for the OPG Core project.

Rules for a valid LPA

  • Applicants must be either a donor or a combination of one or more attorneys. If there is a donor in the collection, there must be no attorneys.
  • There is exactly one donor.
  • There is at least one attorney.
  • There is at least one certificate provider. If there are no notified persons, there must be at least two certificate providers.
  • There are zero or more notified persons.
  • There is exactly one correspondent. The correspondent may be a person or a company.

Dependencies

> php composer.phar install

Tests

> vendor/bin/phpunit -c tests/phpunit.xml

Resources