Mercurial > hg > isophonics-drupal-site
comparison vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 7a779792577d |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
419 * @throws Exception\InvalidArgumentException | 419 * @throws Exception\InvalidArgumentException |
420 * @return AbstractFeed | 420 * @return AbstractFeed |
421 */ | 421 */ |
422 public function setTitle($title) | 422 public function setTitle($title) |
423 { | 423 { |
424 if (empty($title) || ! is_string($title)) { | 424 if ((empty($title) && ! is_numeric($title)) || ! is_string($title)) { |
425 throw new Exception\InvalidArgumentException('Invalid parameter: parameter must be a non-empty string'); | 425 throw new Exception\InvalidArgumentException('Invalid parameter: parameter must be a non-empty string'); |
426 } | 426 } |
427 $this->data['title'] = $title; | 427 $this->data['title'] = $title; |
428 | 428 |
429 return $this; | 429 return $this; |