return str($this->list); } /** * Returns the sum of this polynomial and the specified polynomial. * This method is not implemented. * * @param object IPolynomial $poly * The polynomial to be added to this polynomial. * @return object IPolynomial * The sum of this polynomial and the specified polynomial. */ public function plus(IPolynomial $poly) { throw new MethodNotImplementedException(); } /** * Main program. * * @param array $args Command-line arguments. * @return integer Zero on success; non-zero on failure. */ public static function main($args) { printf("PolynomialAsOrderedList main program.\n"); $status = 0; return $status; } } if (realpath($argv[0]) == realpath(__FILE__)) { exit(PolynomialAsOrderedList::main(array_slice($argv, 1))); }