Mercurial > hg > isophonics-drupal-site
comparison vendor/zendframework/zend-feed/src/Writer/Entry.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 |
---|---|
362 * @throws Exception\InvalidArgumentException | 362 * @throws Exception\InvalidArgumentException |
363 * @return Entry | 363 * @return Entry |
364 */ | 364 */ |
365 public function setTitle($title) | 365 public function setTitle($title) |
366 { | 366 { |
367 if (empty($title) || ! is_string($title)) { | 367 if ((empty($title) && ! is_numeric($title)) || ! is_string($title)) { |
368 throw new Exception\InvalidArgumentException('Invalid parameter: parameter must be a non-empty string'); | 368 throw new Exception\InvalidArgumentException('Invalid parameter: parameter must be a non-empty string'); |
369 } | 369 } |
370 $this->data['title'] = $title; | 370 $this->data['title'] = $title; |
371 | 371 |
372 return $this; | 372 return $this; |