public function __construct($components) { if (count($components) < 2) { throw new InvalidFeature(__CLASS__, "LineString must have at least 2 points"); } parent::__construct($components); }