Bitrix24\Im\Attach\Attach::__construct PHP Метод

__construct() публичный Метод

Attach constructor.
public __construct ( null | integer $id = null, null | string $color = null )
$id null | integer
$color null | string
    public function __construct($id = null, $color = null)
    {
        $this->attachItems = array();
        if (null === $id) {
            $this->id = time();
        }
        if (self::CHAT !== $color) {
            $this->color = $color;
            if (null === $this->color) {
                $this->setStatusNormal();
            }
        }
    }