This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Following Explanation From Wikipedia | |
https://en.wikipedia.org/wiki/Encapsulation_(computer_programming) | |
Encapsulation is used to hide the values or state of a structured data object inside a class | |
*/ | |
class AClass { | |
private $propertyDoesntViolateEncapsulation = 0; | |
private static $propertyViolatesEncapsulation = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/****************************************************************************** | |
* Copyright (c) 2017 Constantin Galbenu <gica.galbenu@gmail.com> * | |
******************************************************************************/ | |
namespace Gica\Cqrs\Aggregate; | |
interface AggregateRepository | |
{ | |
public function loadAggregate(string $aggregateClass, \Gica\Types\Guid $aggregateId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This file is part of the prooph/event-store-mongodb-adapter. | |
* (c) 2014 - 2015 prooph software GmbH <contact@prooph.de> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
* | |
* Date: 08/08/15 - 20:32 | |
*/ |