Update line.php

Changed polygonal_chain to an abstract class. Now descending classes can use the parent's constructor and have their own constructors.