private function getSetterParams(array $arguments, bool $isOptional)
    {
        $args = [];
        foreach ($arguments as $argument) {
            try {
                $args[] = $this->factoryCompiler->getArgStmt($argument);
            } catch (Unbound $e) {
                if ($isOptional) {
                    return false;
                }
            }
        }

        return $args;
    }
private function getSetterParams(array $arguments, bool $isOptional)
    {
        $args = [];
        foreach ($arguments as $argument) {
            try {
                $args[] = $this->factoryCompiler->getArgStmt($argument);
            } catch (Unbound $e) {
                if ($isOptional) {
                    return false;
                }
            }
        }

        return $args;
    }
private function getSetterParams ( array $ arguments , bool $ isOptional ) { $ args = [ ] ; foreach ( $ arguments as $ argument ) { try { $ args [ ] = $ this -> factoryCompiler -> getArgStmt ( $ argument ) ; } catch ( Unbound $ e ) { if ( $ isOptional ) { return false ; } } } return $ args ; }
Return setter method parameters

Return false when no dependency given and @ Inject(optional=true) annotated to setter method.

@param Argument[] $arguments
@param bool       $isOptional

@return Node\Expr[]|false
Return setter method parameters