Get brand

If no "brand" value has been set, this method will
set and return a default "brand" value,
if any such value is available

@see getDefaultBrand()

@return string|null brand or null if no brand has been set
546791
public function getBrand() : ?string 
    {
        if ( ! $this->hasBrand()) {
            $this->setBrand($this->getDefaultBrand());
        }
        return $this->brand;
    }
1046495
public static function &GetInstanceForCurrentFilter()
    {
        static $oInstance = false;
        if (false === $oInstance) {
            $oInstance = null;
            $aFilter = TdbShop::GetActiveFilter();
            if (array_key_exists('shop_manufacturer_id', $aFilter) && !empty($aFilter['shop_manufacturer_id'])) {
                $oInstance = TdbShopManufacturer::GetNewInstance();
                /** @var $oInstance TdbShopManufacturer */
                if (!$oInstance->Load($aFilter['shop_manufacturer_id'])) {
                    $oInstance = null;
                }
            }
        }

        return $oInstance;
    }
28130
public function getDefaultLabel()
    {
        $oDefault = $this->getDefault();
        return empty($oDefault->label) ? false : $oDefault->label;
    }
767850
public function getValue() : ?string 
    {
        if ( ! $this->hasValue()) {
            $this->setValue($this->getDefaultValue());
        }
        return $this->value;
    }
426599
public function getPrice() : ?string 
    {
        if ( ! $this->hasPrice()) {
            $this->setPrice($this->getDefaultPrice());
        }
        return $this->price;
    }
1258440
public function getDefaultCard()
    {
        if (!$this->stripe_id) {
            return null;
        }

        $customer = $this->asStripeCustomer();

        foreach ($customer->sources->data as $card) {
            if ($card->id === $customer->default_source) {
                return $card;
            }
        }

        return null;
    }
158963
public static ProductBrand createBrand(@Nullable String brand) {
    ProductBrand productBrand = new ProductBrand();
    productBrand.setValue(brand);
    return productBrand;
  }
1295229
public function getDefaultIdentifier()
    {
        if ($defaultIdentifiers = $this->config()->default_identifiers) {
            
            if (isset($defaultIdentifiers[$this->getClass()])) {
                return $defaultIdentifiers[$this->getClass()];
            }
            
        }
    }
552300
public function get_default(): ?string
  {
    if (
      ($id_opt = $this->from_path('default')) &&
      ($all = $this->pref->get_all($id_opt))
    ){
      $id = false;
      foreach ( $all as $a ){
        if ( !empty($a['id_user']) ){
          $id = $a['id_alias'];
          break;
        }
        else if ( !empty($a['id_group']) ){
          $id = $a['id_alias'];
          break;
        }
        else if ( !empty($a['public']) ){
          $id = $a['id_alias'];
          break;
        }
      }
      return $id;
    }
	return null;
  }
564484
public function getPhpDefaultValue()
    {
        if (null === $this->defaultValue) {
            return null;
        }

        if ($this->defaultValue->isExpression()) {
            throw new EngineException('Cannot get PHP version of default value for default value EXPRESSION.');
        }

        if (in_array($this->mappingType, [ PropelTypes::BOOLEAN, PropelTypes::BOOLEAN_EMU ])) {
            return $this->booleanValue($this->defaultValue->getValue());
        }

        if (PropelTypes::PHP_ARRAY === $this->mappingType) {
            return $this->getDefaultValueForArray($this->defaultValue->getValue());
        }
        if (PropelTypes::SET === $this->mappingType) {
            return $this->getDefaultValueForSet($this->defaultValue->getValue());
        }

        return $this->defaultValue->getValue();
    }
797128
@CardBrand
    public String getBrand() {
        if (StripeTextUtils.isBlank(brand) && !StripeTextUtils.isBlank(number)) {
            brand = CardUtils.getPossibleCardType(number);
        }

        return brand;
    }
1132024
public function getBrand(ConnectionInterface $con = null)
    {
        if ($this->aBrand === null && ($this->brand_id !== null)) {
            $this->aBrand = BrandQuery::create()->findPk($this->brand_id, $con);
            /* The following can be used additionally to
                guarantee the related object contains a reference
                to this object.  This level of coupling may, however, be
                undesirable since it could result in an only partially populated collection
                in the referenced object.
                $this->aBrand->addDealerBrands($this);
             */
        }

        return $this->aBrand;
    }
1217537
public function getDefaultValue()
    {
        $default = $this->_default;

        if ($default && !$this->isScalar()) {
            $default = $default instanceof AnDomainAttributeInterface ? clone $default :
                        AnDomainAttribute::getInstance($this->_type);
        }

        return $default;
    }
1015303
public function getVendor() : ?string 
    {
        if ( ! $this->hasVendor()) {
            $this->setVendor($this->getDefaultVendor());
        }
        return $this->vendor;
    }
899415
public function getActManufacturer()
    {
        $oManufacturer = oxNew(\OxidEsales\Eshop\Application\Model\Manufacturer::class);
        $blLoaded = $this->getActCatType() == 'oxmanufacturer' && $oManufacturer->load($this->getActCatId());

        return ($blLoaded) ? $oManufacturer : null;
    }
616790
public function getTag() : ?string 
    {
        if ( ! $this->hasTag()) {
            $this->setTag($this->getDefaultTag());
        }
        return $this->tag;
    }
598021
public function getIdentifier() : ?string 
    {
        if ( ! $this->hasIdentifier()) {
            $this->setIdentifier($this->getDefaultIdentifier());
        }
        return $this->identifier;
    }