public function setPermissionOverwritesAttribute($overwrites)
    {
        $this->attributes['permission_overwrites'] = $overwrites;

        if (! is_null($overwrites)) {
            foreach ($overwrites as $overwrite) {
                $overwrite               = (array) $overwrite;
                $overwrite['channel_id'] = $this->id;

                $this->overwrites->push($overwrite);
            }
        }
    }
public function setPermissionOverwritesAttribute($overwrites)
    {
        $this->attributes['permission_overwrites'] = $overwrites;

        if (! is_null($overwrites)) {
            foreach ($overwrites as $overwrite) {
                $overwrite               = (array) $overwrite;
                $overwrite['channel_id'] = $this->id;

                $this->overwrites->push($overwrite);
            }
        }
    }
public function setPermissionOverwritesAttribute ( $ overwrites ) { $ this -> attributes [ 'permission_overwrites' ] = $ overwrites ; if ( ! is_null ( $ overwrites ) ) { foreach ( $ overwrites as $ overwrite ) { $ overwrite = ( array ) $ overwrite ; $ overwrite [ 'channel_id' ] = $ this -> id ; $ this -> overwrites -> push ( $ overwrite ) ; } } }
Sets the permission overwrites attribute.

@return void
Sets the permission overwrites attribute .