public function getChanges() {
		if (!$this->listening) {
			return [];
		}
		stream_set_blocking($this->connection->getOutputStream(), 0);
		$lines = [];
		while (($line = $this->connection->readLine())) {
			$this->checkForError($line);
			$lines[] = $line;
		}
		stream_set_blocking($this->connection->getOutputStream(), 1);
		return array_values(array_filter(array_map([$this, 'parseChangeLine'], $lines)));
	}
public function getChanges() {
		if (!$this->listening) {
			return [];
		}
		stream_set_blocking($this->connection->getOutputStream(), 0);
		$lines = [];
		while (($line = $this->connection->readLine())) {
			$this->checkForError($line);
			$lines[] = $line;
		}
		stream_set_blocking($this->connection->getOutputStream(), 1);
		return array_values(array_filter(array_map([$this, 'parseChangeLine'], $lines)));
	}
public function getChanges ( ) { if ( ! $ this -> listening ) { return [ ] ; } stream_set_blocking ( $ this -> connection -> getOutputStream ( ) , 0 ) ; $ lines = [ ] ; while ( ( $ line = $ this -> connection -> readLine ( ) ) ) { $ this -> checkForError ( $ line ) ; $ lines [ ] = $ line ; } stream_set_blocking ( $ this -> connection -> getOutputStream ( ) , 1 ) ; return array_values ( array_filter ( array_map ( [ $ this , 'parseChangeLine' ] , $ lines ) ) ) ; }
Get all changes detected since the start of the notify process or the last call to getChanges

@return Change[]
Get all changes detected since the start of the notify process or the last call to getChanges