Skip to content

Instantly share code, notes, and snippets.

View xprt64's full-sized avatar

Constantin Galbenu xprt64

View GitHub Profile
<?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;
<?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);
@xprt64
xprt64 / MongoDbEventStoreAdapterTransactionTest.php�
Created September 28, 2016 07:36
it_should_not_read_uncommited_events�
<?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
*/