public function getAddedLines()
    {
        return array_values(array_filter(
            $this->lines,
            function (Line $line) {
                return $line->getType() == Line::ADDED;
            }
        ));
    }
public function getAddedLines()
    {
        return array_values(array_filter(
            $this->lines,
            function (Line $line) {
                return $line->getType() == Line::ADDED;
            }
        ));
    }
public function getAddedLines ( ) { return array_values ( array_filter ( $ this -> lines , function ( Line $ line ) { return $ line -> getType ( ) == Line :: ADDED ; } ) ) ; }
Get the added lines.

@return Line[]
Get the added lines .