public function endInput($source)
    {
        $this->streamingSource = $source;
        $sourceAllEnded = true;
        foreach ($this->sources as $src) {
            $sourceAllEnded &= $src->isEnded();
        }
        if ($sourceAllEnded) {
            $this->is_ended = true;
            $this->onInputEnd();
            foreach ($this->destinations as $node) {
                $node->endInput($this);
            }
        }
    }
public function endInput($source)
    {
        $this->streamingSource = $source;
        $sourceAllEnded = true;
        foreach ($this->sources as $src) {
            $sourceAllEnded &= $src->isEnded();
        }
        if ($sourceAllEnded) {
            $this->is_ended = true;
            $this->onInputEnd();
            foreach ($this->destinations as $node) {
                $node->endInput($this);
            }
        }
    }
public function endInput ( $ source ) { $ this -> streamingSource = $ source ; $ sourceAllEnded = true ; foreach ( $ this -> sources as $ src ) { $ sourceAllEnded &= $ src -> isEnded ( ) ; } if ( $ sourceAllEnded ) { $ this -> is_ended = true ; $ this -> onInputEnd ( ) ; foreach ( $ this -> destinations as $ node ) { $ node -> endInput ( $ this ) ; } } }
The source will call this method to tell that it finishes sending data

@param Node $source The source that sends data to

@return null
The source will call this method to tell that it finishes sending data