Mapping $mapping). */ protected $mappings = []; /** * Register a new mapping. * * @param \Civi\ActionSchedule\MappingInterface $mapping * The new mapping. * @return MappingRegisterEvent */ public function register(MappingInterface $mapping) { $this->mappings[$mapping->getId()] = $mapping; return $this; } /** * @return array * Array(scalar $id => MappingInterface $mapping). */ public function getMappings() { ksort($this->mappings); return $this->mappings; } }