public function set_restraints($restraints) { $this->restraints = array_map('intval', $restraints); return $this; }