/** * @param string $name * @return mixed * @throws InvaildException */ public static function getComponents($name) { $components = Genius::userConfig()->get('components'); if (!property_exists($components, $name)) { if (!GENIUS_DEBUG) { return null; } throw new InvaildException(sprintf('Undefined components: %s', $name)); } return $components->get($name); }
public function calculateFaster() { parent::calculateFaster(); }