public function chainSaving( array &$tasks, $key )
    {
        if( $this->isNew() or $this->isChanged() ) {
            $tasks[$key] = $this;
        }
    }
public function chainSaving( array &$tasks, $key )
    {
        if( $this->isNew() or $this->isChanged() ) {
            $tasks[$key] = $this;
        }
    }
public function chainSaving ( array & $ tasks , $ key ) { if ( $ this -> isNew ( ) or $ this -> isChanged ( ) ) { $ tasks [ $ key ] = $ this ; } }
Add a object to the chain task array if it is changed or new
Required for ChainSavingInterface

@param array $task The existing array of tasks
@param string $key The string under which to add the object
Add a object to the chain task array if it is changed or new Required for ChainSavingInterface