Skip to content

Instantly share code, notes, and snippets.

/* @var Namespace\Entita $entita /
$entita = $this->getDoctrine()->....->find(..);
Feature: Create personal schedule
In order to spend more time socialising at the conference instead of looking at the schedule
As a conference attendee
I want to create my personal schedule beforehand
Scenario: Successfully selecting 1 talk
Given there is a conference "Agile Conference"
And there is a "Specification" talk in the first time period
When I choose the "Specification" talk
Feature: Create personal schedule
In order to spend more time socialising at the conference instead of looking at the schedule
As a conference attendee
I want to create my personal schedule beforehand
Scenario: Successfully selecting 1 talk
Given there is a conference "XP Conference"
And there is a "Specification" talk in first time period
When I open the "/conferences/xp" page
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MessageResponse GId="1ca33652-d0e0-4ece-aeef-c3a44886f86a" MId="9a3e7236-4341-4c85-ba50-97d3fcfa7010" MTs="2015-06-12T12:51:11.6389164+02:00" METs="2015-06-22T12:51:11.6389164+02:00" xmlns="urn:crif-message:2006-08-23">
<P SId="S18" PId="EuriscINC" PNs="urn:crif-anagraficaunica-eurisc:2006-11-28">
<R L="en-US" C="urn:crif-messagegateway:2006-08-23:S" D="Success."/>
</P>
<Tx TxNs="urn:crif-messagegateway:2006-08-23">
<R L="en-US" C="urn:crif-messagegateway:2006-08-23:S" D="Success."/>
</Tx>
</MessageResponse>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MessageResponse GId="1ca33652-d0e0-4ece-aeef-c3a44886f86a" MId="9a3e7236-4341-4c85-ba50-97d3fcfa7010" MTs="2015-06-12T12:51:11.6389164+02:00" METs="2015-06-22T12:51:11.6389164+02:00" xmlns="urn:crif-message:2006-08-23">
<P SId="S18" PId="EuriscINC" PNs="urn:crif-anagraficaunica-eurisc:2006-11-28">
<R L="en-US" C="urn:crif-messagegateway:2006-08-23:S" D="Success."/>
</P>
<Tx TxNs="urn:crif-messagegateway:2006-08-23">
<R L="en-US" C="urn:crif-messagegateway:2006-08-23:S" D="Success."/>
</Tx>
</MessageResponse>
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><MessageResponse GId="1ca33652-d0e0-4ece-aeef-c3a44886f86a" MId="9a3e7236-4341-4c85-ba50-97d3fcfa7009" MTs="2015-06-12T12:48:44.3898588+02:00" METs="2015-06-22T12:48:44.3898588+02:00" xmlns="urn:crif-message:2006-08-23"><P SId="S18" PId="EuriscINC" PNs="urn:crif-anagraficaunica-eurisc:2006-11-28"><R L="en-US" C="urn:crif-messagegateway:2006-08-23:S" D="Success." /></P><Tx TxNs="urn:crif-messagegateway:2006-08-23"><R L="en-US" C="urn:crif-messagegateway:2006-08-23:S" D="Success." /></Tx></MessageResponse></soap:Header><soap:Body><MGResponse xmlns="urn:crif-messagegateway:2006-08-23">&lt;MGResponse xmlns="urn:crif-messagegateway:2006-08-23"&gt;&lt;EuriscINCResponse xmlns="urn:crif-anagraficaunica-eurisc:2006-11-28"&gt;&lt;CCC&gt;L25611020&lt;/CCC&gt;&lt;AI&gt;&lt;PF C="NERI" N="LUCIANA" S="F" DN
<?php
class Order
{
private $orderId;
private $state;
private $total;
private $creationDate;
private $items = array();
private $buyer;
<?php
class OrderProcessedViewModel
{
public $orderId;
public $paymentDetails;
public $shippingDetails;
public static function createFromOrder(Order $order)
{
//controller
public function retrieveLastOrderForCustomerAction(customerId)
{
$order = $this->getManager()
->getRepository('AppBundle:Order')
->findLastByCustomer(customerId);
if (! order) {
...
<?php
class Order
{
private $orderId;
private $state;
private $total;
private $creationDate;
private $items = array();
private $buyer;