for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace Maslosoft\SignalsExamples;
use Maslosoft\Addendum\Interfaces\AnnotatedInterface;
use Maslosoft\SignalsExamples\Signals\ConstructorInjected;
/**
* Model with constructor injection
* @SlotFor(ConstructorInjected)
*
* @see ConstructorInjected
* @author Piotr Maselkowski <pmaselkowski at gmail.com>
class WithConstructorInjection implements AnnotatedInterface
{
public function __construct(ConstructorInjected $signal)
$signal->emitted = true;
}