Plum\Plum\Workflow::getConverters PHP Method

getConverters() public method

public getConverters ( ) : ConverterPipe[]
return Plum\Plum\Pipe\ConverterPipe[]
    public function getConverters()
    {
        return $this->getPipeline('Plum\\Plum\\Pipe\\ConverterPipe');
    }

Usage Example

Example #1
0
 /**
  * @test
  * @covers Plum\Plum\Workflow::addConverter()
  */
 public function addConverterWithFieldAcceptsCallbackFilterInArrayAndCreatesCallbackFilter()
 {
     $this->workflow->addConverter(['converter' => $this->getMockConverter(), 'field' => ['foo'], 'filter' => function ($item) {
         return true;
     }]);
     $this->assertInstanceOf('Plum\\Plum\\Filter\\FilterInterface', $this->workflow->getConverters()[0]->getFilter());
 }