for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* SDK to communicate with EDBBrugs
*
* PHP Version 5
* @category EDBBrugs
* @package EDBBrugs
* @author Lars Olesen <[email protected]>
* @license MIT Open Source License https://opensource.org/licenses/MIT
* @version GIT: <git_id>
*/
namespace EDBBrugs;
* Generate the XML
class RegistrationRepository
{
* Constructor
* @param ClientInterface $client Client object
public function __construct(ClientInterface $client)
$this->client = $client;
client
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
}
* Adds registration
* @param array $registrations Array with several registrations
* @return ResponseInterface
public function addRegistrations(array $registrations)
return $this->client->createNewRegistrations($registrations);
* Gets new registrations
public function getNewRegistrations()
return $this->client->getNewRegistrations();
* Gets handled registrations
public function getHandledRegistrations()
return $this->client->getHandledRegistrations();
* Deletes registration
* @throws Exception
* @return void
public function delete()
throw new \Exception('It is not possible to delete registrations using the SOAP webservice');
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: