public function frameRate($r) { if (!empty($r) and preg_match('/^([0-9]+\\/[0-9]+)$/', $r) xor is_numeric($r)) { $this->set('r', $r, false); } return $this; }