src/Yandex/Market/Content/Models/Contras.php
public function add($fact)
    {
        if (is_string($fact)) {
            $this->collection[] = new Fact(array('fact'=>$fact));
        } elseif (is_object($fact) && $fact instanceof Fact) {
            $this->collection[] = $fact;
        }

        return $this;
    }
public function add($fact)
    {
        if (is_string($fact)) {
            $this->collection[] = new Fact(array('fact'=>$fact));
        } elseif (is_object($fact) && $fact instanceof Fact) {
            $this->collection[] = $fact;
        }

        return $this;
    }
public function add ( $ fact ) { if ( is_string ( $ fact ) ) { $ this -> collection [ ] = new Fact ( array ( 'fact' => $ fact ) ) ; } elseif ( is_object ( $ fact ) && $ fact instanceof Fact ) { $ this -> collection [ ] = $ fact ; } return $ this ; }
Add fact to collection

@param Fact|array $fact

@return Contras
Add fact to collection