mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
36 lines
826 B
PHP
36 lines
826 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Factories\Concerns;
|
|
|
|
use Pest\Support\HigherOrderMessageCollection;
|
|
|
|
trait HigherOrderable
|
|
{
|
|
/**
|
|
* The higher order messages that are chainable.
|
|
*/
|
|
public HigherOrderMessageCollection $chains;
|
|
|
|
/**
|
|
* The higher order messages that are "factory" proxyable.
|
|
*/
|
|
public HigherOrderMessageCollection $factoryProxies;
|
|
|
|
/**
|
|
* The higher order messages that are proxyable.
|
|
*/
|
|
public HigherOrderMessageCollection $proxies;
|
|
|
|
/**
|
|
* Boot the higher order properties.
|
|
*/
|
|
private function bootHigherOrderable(): void
|
|
{
|
|
$this->chains = new HigherOrderMessageCollection();
|
|
$this->factoryProxies = new HigherOrderMessageCollection();
|
|
$this->proxies = new HigherOrderMessageCollection();
|
|
}
|
|
}
|