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 | |
interface Reporter { | |
/** @return string */ | |
public function getSupportedContext(); | |
/** @return array */ | |
public function getHandlers(); | |
} |
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
/*M/////////////////////////////////////////////////////////////////////////////////////// | |
// | |
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. | |
// | |
// By downloading, copying, installing or using the software you agree to this license. | |
// If you do not agree to this license, do not download, install, | |
// copy or use the software. | |
// | |
// | |
// License Agreement |
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
import angular from 'angular'; | |
import dxMediaFeed from './media/media_feed.component.js'; | |
export default angular | |
.module('app', []) | |
.config(statesConfig) | |
.name; | |
function statesConfig($stateProvider) { | |
$stateProvider.state('media', { |
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 | |
abstract class Freezable | |
{ | |
private $attributes; | |
private $isFreezed; | |
public function __get($name) { | |
return $this->attributes[$name]; |
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 | |
namespace SomeApp\Application\DTO; | |
use Symfony\Component\OptionsResolver\OptionsResolver; | |
abstract class AbstractRequest | |
{ | |
public function __construct(array $data) |
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 | |
class Photo | |
{ | |
/** | |
* @ORM\Id | |
* @ORM\GeneratedValue | |
* @ORM\Column(type="integer") | |
*/ | |
private $id; |
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
function postStartNegotiations1(Property $property, Offer $offer) | |
{ | |
return $this->get('app.command.add_offer')->execute((object) [ | |
'suggestedPrice' => $offer->getSuggestedPrice(), | |
'buyer' => $this->getUser(), | |
'advert' => $advert | |
]); | |
} | |
function postStartNegotiations2(Property $property, Offer $offer) |
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 | |
class AddAdvertPhotoCommand implements CommandInterface | |
{ | |
private $repository; | |
private $fileUploader; | |
public function __construct( | |
AdvertPhotoRepositoryInterface $repository, | |
FileUploaderInterface $fileUploader |
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
class Translation { | |
public static function fromDTO($dto) { | |
$translation = new static($dto->locale); | |
$translation->address = $dto->address; | |
// ... | |
return $translation; | |
} |
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 | |
class KernelEventsSubscriber { | |
public function flushChanges() | |
{ | |
$this->em->flush(); | |
} | |
public function prepareResponse(GetResponseForControllerResultEvent $event) |