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 string $request Request object
public function __construct($request)
$this->request = $request;
request
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 $registration Array with registration options
* @return void
public function addRegistration(array $registration)
$reg = $this->request->getRequest()->addChild('Tilmelding');
foreach ($registration as $key => $value) {
$reg->addChild($key, $value);
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: