/**
  * {@inheritdoc}
  *
  * @param string[] $values
  */
 public function setValues(array $values)
 {
     foreach ($values as $value) {
         $this->checkType('string', $value, true);
     }
     parent::setValues($values);
 }
 /**
  * {@inheritdoc}
  *
  * @param float[] $values
  */
 public function setValues(array $values)
 {
     foreach ($values as $key => $value) {
         if (is_integer($value)) {
             // cast integer values silenty to a double value.
             $values[$key] = $value = (double) $value;
         }
         $this->checkType('double', $value, true);
     }
     parent::setValues($values);
 }
 /**
  * @depends testSetValuesSetsProperty
  */
 public function testGetFirstValueReturnsNullIfPropertyDoesNotContainValues()
 {
     $this->propertyDataMock->setValues(array());
     $this->assertNull($this->propertyDataMock->getFirstValue());
 }