/** * @method TwitterBootstrap lead() * @method TwitterBootstrap textLeft() * @method TwitterBootstrap textCenter() * @method TwitterBootstrap textRight() * @method TwitterBootstrap textMuted() * @method TwitterBootstrap textPrimary() * @method TwitterBootstrap textSuccess() * @method TwitterBootstrap textInfo() * @method TwitterBootstrap textWarning() * @method TwitterBootstrap textDanger() * * @param string $name * @param array $args * @return Tag */ public function __call($name, $args) { $pattern = array('lead' => 'lead', 'textLeft' => 'text-left', 'textCenter' => 'text-center', 'textRight' => 'text-right', 'textMuted' => 'text-muted', 'textPrimary' => 'text-primary', 'textSuccess' => 'text-success', 'textInfo' => 'text-info', 'textWarning' => 'text-warning', 'textDanger' => 'text-danger'); if (array_key_exists($name, $pattern)) { return $this->addClass($pattern[$name]); } return parent::__call($name, $args); }