for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* (c) 2019, Wesley O. Nichols
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Wesnick\WorkflowBundle\Model;
use ApiPlatform\Core\Annotation\ApiProperty;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* Trait PotentialActionsTrait.
* @author Wesley O. Nichols <[email protected]>
trait PotentialActionsTrait
{
* @var Action[] collection of potential Action, which describes an idealized action in which this thing
* would play an 'object' role
* @ApiProperty(
* iri="http://schema.org/potentialAction",
* readable=true,
* writable=false
* )
* @Groups({"workflowAction:output"})
private $potentialAction = [];
* @param Action $action
public function addPotentialAction(Action $action)
$this->potentialAction[] = $action;
}
* @return array
public function getPotentialAction(): array
return $this->potentialAction;