public function findUnitByStart(Token $token) {
		foreach ($this->collection as $unit) {
			if ($unit->start === $token) {
				return $unit;
			}
		}

		return null;
	}
public function findUnitByStart(Token $token) {
		foreach ($this->collection as $unit) {
			if ($unit->start === $token) {
				return $unit;
			}
		}

		return null;
	}
public function findUnitByStart ( Token $ token ) { foreach ( $ this -> collection as $ unit ) { if ( $ unit -> start === $ token ) { return $ unit ; } } return null ; }
Searches for blocks that start with a given token and returns it or null, if none is found

@param Token $token
@return Unit the found block or null
Searches for blocks that start with a given token and returns it or null if none is found